SparkPlan
is an abstract QueryPlan for physical operators, e.g. InMemoryTableScanExec
.
Note
|
Physical operators have their names end with the Exec prefix. |
It has the following attributes:
-
metadata
-
outputPartitioning
-
outputOrdering
SparkPlan
can be executed (using the final execute
method) to compute RDD[InternalRow]
.
SparkPlan
has the following final
methods that prepare environment and pass calls on to corresponding methods that constitute SparkPlan Contract:
-
execute
callsdoExecute
-
prepare
callsdoPrepare
-
executeBroadcast
callsdoExecuteBroadcast
SQLMetric
is an accumulator that accumulate and produce long values.
There are three known SQLMetrics
:
-
sum
-
size
-
timing
metrics: Map[String, SQLMetric] = Map.empty
metrics
is a private[sql]
lookup table of supported SQLMetrics by their names.