Class

org.apache.spark.sql.execution

SparkStrategies

Related Doc: package execution

Permalink

abstract class SparkStrategies extends QueryPlanner[SparkPlan]

Self Type
SparkPlanner
Linear Supertypes
QueryPlanner[SparkPlan], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkStrategies
  2. QueryPlanner
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkStrategies()

    Permalink

Abstract Value Members

  1. abstract def collectPlaceholders(plan: SparkPlan): Seq[(SparkPlan, LogicalPlan)]

    Permalink
    Attributes
    protected
    Definition Classes
    QueryPlanner
  2. abstract def prunePlans(plans: Iterator[SparkPlan]): Iterator[SparkPlan]

    Permalink
    Attributes
    protected
    Definition Classes
    QueryPlanner
  3. abstract def strategies: Seq[GenericStrategy[SparkPlan]]

    Permalink
    Definition Classes
    QueryPlanner

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Aggregation extends Strategy

    Permalink

    Used to plan the aggregate operator for expressions based on the AggregateFunction2 interface.

  5. object BasicOperators extends Strategy

    Permalink
  6. object DDLStrategy extends Strategy

    Permalink
  7. object InMemoryScans extends Strategy

    Permalink
  8. object JoinSelection extends Strategy with PredicateHelper

    Permalink

    Select the proper physical plan for join based on joining keys and size of logical plan.

    Select the proper physical plan for join based on joining keys and size of logical plan.

    At first, uses the ExtractEquiJoinKeys pattern to find joins where at least some of the predicates can be evaluated by matching join keys. If found, Join implementations are chosen with the following precedence:

    - Broadcast: if one side of the join has an estimated physical size that is smaller than the user-configurable SQLConf.AUTO_BROADCASTJOIN_THRESHOLD threshold or if that side has an explicit broadcast hint (e.g. the user applied the org.apache.spark.sql.functions.broadcast() function to a DataFrame), then that side of the join will be broadcasted and the other side will be streamed, with no shuffling performed. If both sides of the join are eligible to be broadcasted then the - Shuffle hash join: if the average size of a single partition is small enough to build a hash table. - Sort merge: if the matching join keys are sortable.

    If there is no joining keys, Join implementations are chosen with the following precedence: - BroadcastNestedLoopJoin: if one side of the join could be broadcasted - CartesianProduct: for Inner join - BroadcastNestedLoopJoin

  9. object SpecialLimits extends Strategy

    Permalink

    Plans special cases of limit operators.

  10. object StatefulAggregationStrategy extends Strategy

    Permalink

    Used to plan aggregation queries that are computed incrementally as part of a StreamingQuery.

    Used to plan aggregation queries that are computed incrementally as part of a StreamingQuery. Currently this rule is injected into the planner on-demand, only when planning in a org.apache.spark.sql.execution.streaming.StreamExecution

  11. object StreamingRelationStrategy extends Strategy

    Permalink

    This strategy is just for explaining Dataset/DataFrame created by spark.readStream.

    This strategy is just for explaining Dataset/DataFrame created by spark.readStream. It won't affect the execution, because StreamingRelation will be replaced with StreamingExecutionRelation in StreamingQueryManager and StreamingExecutionRelation will be replaced with the real relation using the Source in StreamExecution.

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def plan(plan: LogicalPlan): Iterator[SparkPlan]

    Permalink
    Definition Classes
    QueryPlanner
  24. lazy val singleRowRdd: RDD[InternalRow]

    Permalink
    Attributes
    protected
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from QueryPlanner[SparkPlan]

Inherited from AnyRef

Inherited from Any

Ungrouped