function called on each group
used to extract the key object for each group.
used to extract the items in the iterator from an input row.
used to group the data
used to read the data
used to define the output object
used to serialize/deserialize state before calling func
the output mode of func
used to timeout groups that have not received data in a while
processing timestamp of the current batch.
Helper class to update the state store
processing timestamp of the current batch.
used to read the data
Overridden by concrete implementations of SparkPlan.
Overridden by concrete implementations of SparkPlan. Produces the result of the query as an RDD[InternalRow]
Overridden by concrete implementations of SparkPlan.
Overridden by concrete implementations of SparkPlan. Produces the result of the query as a broadcast variable.
Overridden by concrete implementations of SparkPlan.
Overridden by concrete implementations of SparkPlan. It is guaranteed to run before any
execute
of SparkPlan. This is helpful if we want to set up some state before executing the
query, e.g., BroadcastHashJoin
uses it to broadcast asynchronously.
Note: the prepare method has already walked down the tree, so the implementation doesn't need to call children's prepare methods.
This will only be called once, protected by this
.
The watermark value.
The watermark value.
Returns the result of this query as an RDD[InternalRow] by delegating to doExecute
after
preparations.
Returns the result of this query as an RDD[InternalRow] by delegating to doExecute
after
preparations.
Concrete implementations of SparkPlan should override doExecute
.
Returns the result of this query as a broadcast variable by delegating to doExecuteBroadcast
after preparations.
Returns the result of this query as a broadcast variable by delegating to doExecuteBroadcast
after preparations.
Concrete implementations of SparkPlan should override doExecuteBroadcast
.
Runs this query returning the result as an array.
Runs this query returning the result as an array.
Runs this query returning the result as an array, using external Row format.
Runs this query returning the result as an array, using external Row format.
Execute a query after preparing the query and adding query plan information to created RDDs for visualization.
Execute a query after preparing the query and adding query plan information to created RDDs for visualization.
Runs this query returning the first n
rows as an array.
Runs this query returning the first n
rows as an array.
This is modeled after RDD.take but never runs any job locally on the driver.
Runs this query returning the result as an iterator of InternalRow.
Runs this query returning the result as an iterator of InternalRow.
Note: this will trigger multiple jobs (one for each partition).
function called on each group
used to group the data
used to extract the key object for each group.
The keys that may have a watermark attribute.
The keys that may have a watermark attribute.
Return a LongSQLMetric according to the name.
Return a LongSQLMetric according to the name.
Overridden make copy also propagates sqlContext to copied plan.
Overridden make copy also propagates sqlContext to copied plan.
Return all metadata that describes more details of this SparkPlan.
Return all metadata that describes more details of this SparkPlan.
Return all metrics containing metrics of this SparkPlan.
Return all metrics containing metrics of this SparkPlan.
Creates a row ordering for the given schema, in natural ascending order.
Creates a row ordering for the given schema, in natural ascending order.
the output mode of func
used to define the output object
used to define the output object
Specifies how data is ordered in each partition.
Specifies how data is ordered in each partition.
Specifies how data is partitioned across different nodes in the cluster.
Specifies how data is partitioned across different nodes in the cluster.
Prepare a SparkPlan for execution.
Prepare a SparkPlan for execution. It's idempotent.
Finds scalar subquery expressions in this plan node and starts evaluating them.
Finds scalar subquery expressions in this plan node and starts evaluating them.
Distribute by grouping attributes
Distribute by grouping attributes
Ordering needed for using GroupingIterator
Ordering needed for using GroupingIterator
Reset all the metrics.
Reset all the metrics.
A handle to the SQL Context that was used to create this plan.
A handle to the SQL Context that was used to create this plan. Since many operators need access to the sqlContext for RDD operations or configuration this field is automatically populated by the query planning infrastructure.
used to serialize/deserialize state before calling func
used to timeout groups that have not received data in a while
used to extract the items in the iterator from an input row.
Blocks the thread until all subqueries finish evaluation and update the results.
Blocks the thread until all subqueries finish evaluation and update the results.
Generate an expression that matches data older than the watermark
Generate an expression that matches data older than the watermark
Predicate based on the child output that matches data older than the watermark.
Predicate based on the child output that matches data older than the watermark.
Predicate based on keys that matches data older than the watermark
Predicate based on keys that matches data older than the watermark
Physical operator for executing
FlatMapGroupsWithState.
function called on each group
used to extract the key object for each group.
used to extract the items in the iterator from an input row.
used to group the data
used to read the data
used to define the output object
used to serialize/deserialize state before calling
func
the output mode of
func
used to timeout groups that have not received data in a while
processing timestamp of the current batch.