Class

org.apache.spark.sql.execution

SparkPlanner

Related Doc: package execution

Permalink

class SparkPlanner extends SparkStrategies

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

Instance Constructors

  1. new SparkPlanner(sqlContext: SQLContext)

    Permalink

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.

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

    Definition Classes
    SparkStrategies
  5. object BasicOperators extends Strategy

    Permalink
    Definition Classes
    SparkStrategies
  6. object BroadcastNestedLoop extends Strategy

    Permalink
    Definition Classes
    SparkStrategies
  7. object CanBroadcast

    Permalink

    Matches a plan whose output should be small enough to be used in broadcast join.

    Matches a plan whose output should be small enough to be used in broadcast join.

    Definition Classes
    SparkStrategies
  8. object CartesianProduct extends Strategy

    Permalink
    Definition Classes
    SparkStrategies
  9. object DDLStrategy extends Strategy

    Permalink
    Definition Classes
    SparkStrategies
  10. object DefaultJoin extends Strategy

    Permalink
    Definition Classes
    SparkStrategies
  11. object EquiJoinSelection extends Strategy with PredicateHelper

    Permalink

    Uses the ExtractEquiJoinKeys pattern to find joins where at least some of the predicates can be evaluated by matching join keys.

    Uses the ExtractEquiJoinKeys pattern to find joins where at least some of the predicates can be evaluated by matching join keys.

    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 org.apache.spark.sql.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 - Sort merge: if the matching join keys are sortable.

    Definition Classes
    SparkStrategies
  12. object InMemoryScans extends Strategy

    Permalink
    Definition Classes
    SparkStrategies
  13. object LeftSemiJoin extends Strategy with PredicateHelper

    Permalink
    Definition Classes
    SparkStrategies
  14. object TakeOrderedAndProject extends Strategy

    Permalink
    Definition Classes
    SparkStrategies
  15. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def numPartitions: Int

    Permalink
  27. def plan(plan: LogicalPlan): Iterator[SparkPlan]

    Permalink
    Definition Classes
    QueryPlanner
  28. def planLater(plan: LogicalPlan): SparkPlan

    Permalink
    Attributes
    protected
    Definition Classes
    QueryPlanner
  29. def pruneFilterProject(projectList: Seq[NamedExpression], filterPredicates: Seq[Expression], prunePushedDownFilters: (Seq[Expression]) ⇒ Seq[Expression], scanBuilder: (Seq[Attribute]) ⇒ SparkPlan): SparkPlan

    Permalink

    Used to build table scan operators where complex projection and filtering are done using separate physical operators.

    Used to build table scan operators where complex projection and filtering are done using separate physical operators. This function returns the given scan operator with Project and Filter nodes added only when needed. For example, a Project operator is only used when the final desired output requires complex expressions to be evaluated or when columns can be further eliminated out after filtering has been done.

    The prunePushedDownFilters parameter is used to remove those filters that can be optimized away by the filter pushdown optimization.

    The required attributes for both filtering and expression evaluation are passed to the provided scanBuilder function so that it can avoid unnecessary column materialization.

  30. lazy val singleRowRdd: RDD[InternalRow]

    Permalink
    Attributes
    protected
    Definition Classes
    SparkStrategies
  31. val sparkContext: SparkContext

    Permalink
  32. val sqlContext: SQLContext

    Permalink
  33. def strategies: Seq[Strategy]

    Permalink
    Definition Classes
    SparkPlanner → QueryPlanner
  34. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from SparkStrategies

Inherited from QueryPlanner[SparkPlan]

Inherited from AnyRef

Inherited from Any

Ungrouped