Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache spark Spark中定义的col和window方法在哪里?_Apache Spark - Fatal编程技术网

Apache spark Spark中定义的col和window方法在哪里?

Apache spark Spark中定义的col和window方法在哪里?,apache-spark,Apache Spark,我找到了这个结构 purchaseByCustomerPerHour = streamingDataFrame\ .selectExpr( "CustomerId", "(UnitPrice * Quantity) as total_cost", "InvoiceDate")\ .groupBy( col("CustomerId"), window(col("InvoiceDate"), "1 day"))\ .sum("total_cost") col和window方法在哪里定义?我在Spa

我找到了这个结构

purchaseByCustomerPerHour = streamingDataFrame\
.selectExpr(
"CustomerId",
"(UnitPrice * Quantity) as total_cost",
"InvoiceDate")\
.groupBy(
col("CustomerId"), window(col("InvoiceDate"), "1 day"))\
.sum("total_cost")
col和window方法在哪里定义?我在Spark的API文档中找不到它们。

找到了。在$

我应该注意到在同一代码中使用了import关键字