org.apache.spark.sql.execution

SparkLogicalPlan

case class SparkLogicalPlan(alreadyPlanned: SparkPlan) extends LogicalPlan with MultiInstanceRelation with Product with Serializable

:: DeveloperApi :: Allows already planned SparkQueries to be linked into logical query plans.

Note that in general it is not valid to use this class to link multiple copies of the same physical operator into the same query plan as this violates the uniqueness of expression ids. Special handling exists for ExistingRdd as these are already leaf operators and thus we can just replace the output attributes with new copies of themselves without breaking any attribute linking.

Annotations
@DeveloperApi()
Linear Supertypes
Serializable, Serializable, Product, Equals, MultiInstanceRelation, LogicalPlan, QueryPlan[LogicalPlan], TreeNode[LogicalPlan], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SparkLogicalPlan
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MultiInstanceRelation
  7. LogicalPlan
  8. QueryPlan
  9. TreeNode
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkLogicalPlan(alreadyPlanned: SparkPlan)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val alreadyPlanned: SparkPlan

  7. def apply(number: Int): LogicalPlan

    Definition Classes
    TreeNode
  8. def argString: String

    Definition Classes
    TreeNode
  9. def asCode: String

    Definition Classes
    TreeNode
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def children: Nil.type

    Definition Classes
    SparkLogicalPlan → TreeNode
  12. def childrenResolved: Boolean

    Definition Classes
    LogicalPlan
  13. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. def collect[B](pf: PartialFunction[LogicalPlan, B]): Seq[B]

    Definition Classes
    TreeNode
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def expressions: Seq[Expression]

    Definition Classes
    QueryPlan
  17. def fastEquals(other: TreeNode[_]): Boolean

    Definition Classes
    TreeNode
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flatMap[A](f: (LogicalPlan) ⇒ TraversableOnce[A]): Seq[A]

    Definition Classes
    TreeNode
  20. def foreach(f: (LogicalPlan) ⇒ Unit): Unit

    Definition Classes
    TreeNode
  21. def generateTreeString(depth: Int, builder: StringBuilder): StringBuilder

    Attributes
    protected
    Definition Classes
    TreeNode
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getNodeNumbered(number: MutableInt): LogicalPlan

    Attributes
    protected
    Definition Classes
    TreeNode
  24. val id: Long

    Definition Classes
    TreeNode
  25. lazy val inputSet: Set[Attribute]

    Definition Classes
    LogicalPlan
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def makeCopy(newArgs: Array[AnyRef]): SparkLogicalPlan.this.type

    Definition Classes
    TreeNode
  28. def map[A](f: (LogicalPlan) ⇒ A): Seq[A]

    Definition Classes
    TreeNode
  29. def mapChildren(f: (LogicalPlan) ⇒ LogicalPlan): SparkLogicalPlan.this.type

    Definition Classes
    TreeNode
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. final def newInstance: SparkLogicalPlan.this.type

    Definition Classes
    SparkLogicalPlan → MultiInstanceRelation
  32. def nodeName: String

    Definition Classes
    TreeNode
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def numberedTreeString: String

    Definition Classes
    TreeNode
  36. def otherCopyArgs: Seq[AnyRef]

    Attributes
    protected
    Definition Classes
    TreeNode
  37. def output: Seq[Attribute]

    Definition Classes
    SparkLogicalPlan → QueryPlan
  38. def outputSet: Set[Attribute]

    Definition Classes
    QueryPlan
  39. def references: Set[Attribute]

    Definition Classes
    SparkLogicalPlan → LogicalPlan
  40. def resolve(name: String): Option[NamedExpression]

    Definition Classes
    LogicalPlan
  41. lazy val resolved: Boolean

    Definition Classes
    LogicalPlan
  42. def sameInstance(other: TreeNode[_]): Boolean

    Definition Classes
    TreeNode
  43. def simpleString: String

    Definition Classes
    TreeNode
  44. def stringArgs: Iterator[Any]

    Attributes
    protected
    Definition Classes
    TreeNode
  45. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  46. def toString(): String

    Definition Classes
    TreeNode → AnyRef → Any
  47. def transform(rule: PartialFunction[LogicalPlan, LogicalPlan]): LogicalPlan

    Definition Classes
    TreeNode
  48. def transformAllExpressions(rule: PartialFunction[Expression, Expression]): SparkLogicalPlan.this.type

    Definition Classes
    QueryPlan
  49. def transformChildrenDown(rule: PartialFunction[LogicalPlan, LogicalPlan]): SparkLogicalPlan.this.type

    Definition Classes
    TreeNode
  50. def transformChildrenUp(rule: PartialFunction[LogicalPlan, LogicalPlan]): SparkLogicalPlan.this.type

    Definition Classes
    TreeNode
  51. def transformDown(rule: PartialFunction[LogicalPlan, LogicalPlan]): LogicalPlan

    Definition Classes
    TreeNode
  52. def transformExpressions(rule: PartialFunction[Expression, Expression]): SparkLogicalPlan.this.type

    Definition Classes
    QueryPlan
  53. def transformExpressionsDown(rule: PartialFunction[Expression, Expression]): SparkLogicalPlan.this.type

    Definition Classes
    QueryPlan
  54. def transformExpressionsUp(rule: PartialFunction[Expression, Expression]): SparkLogicalPlan.this.type

    Definition Classes
    QueryPlan
  55. def transformUp(rule: PartialFunction[LogicalPlan, LogicalPlan]): LogicalPlan

    Definition Classes
    TreeNode
  56. def treeString: String

    Definition Classes
    TreeNode
  57. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. def withNewChildren(newChildren: Seq[LogicalPlan]): SparkLogicalPlan.this.type

    Definition Classes
    TreeNode

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MultiInstanceRelation

Inherited from LogicalPlan

Inherited from QueryPlan[LogicalPlan]

Inherited from TreeNode[LogicalPlan]

Inherited from AnyRef

Inherited from Any

Ungrouped