Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package apache
    Definition Classes
    org
  • package spark
    Definition Classes
    apache
  • package sql
    Definition Classes
    spark
  • package catalyst

    Catalyst is a library for manipulating relational query plans.

    Catalyst is a library for manipulating relational query plans. All classes in catalyst are considered an internal API to Spark SQL and are subject to change between minor releases.

    Definition Classes
    sql
  • package dsl

    A collection of implicit conversions that create a DSL for constructing catalyst data structures.

    A collection of implicit conversions that create a DSL for constructing catalyst data structures.

    scala> import org.apache.spark.sql.catalyst.dsl.expressions._
    
    // Standard operators are added to expressions.
    scala> import org.apache.spark.sql.catalyst.expressions.Literal
    scala> Literal(1) + Literal(1)
    res0: org.apache.spark.sql.catalyst.expressions.Add = (1 + 1)
    
    // There is a conversion from 'symbols to unresolved attributes.
    scala> 'a.attr
    res1: org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute = 'a
    
    // These unresolved attributes can be used to create more complicated expressions.
    scala> 'a === 'b
    res2: org.apache.spark.sql.catalyst.expressions.EqualTo = ('a = 'b)
    
    // SQL verbs can be used to construct logical query plans.
    scala> import org.apache.spark.sql.catalyst.plans.logical._
    scala> import org.apache.spark.sql.catalyst.dsl.plans._
    scala> LocalRelation('key.int, 'value.string).where('key === 1).select('value).analyze
    res3: org.apache.spark.sql.catalyst.plans.logical.LogicalPlan =
    Project [value#3]
     Filter (key#2 = 1)
      LocalRelation [key#2,value#3], []
    Definition Classes
    catalyst
  • object plans
    Definition Classes
    dsl
  • DslLogicalPlan

implicit class DslLogicalPlan extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DslLogicalPlan
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DslLogicalPlan(logicalPlan: LogicalPlan)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def analyze: LogicalPlan
  5. def as(alias: String): LogicalPlan
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def coalesce(num: Integer): LogicalPlan
  9. def cogroup[Key, Left, Right, Result](otherPlan: LogicalPlan, func: (Key, Iterator[Left], Iterator[Right]) ⇒ TraversableOnce[Result], leftGroup: Seq[Attribute], rightGroup: Seq[Attribute], leftAttr: Seq[Attribute], rightAttr: Seq[Attribute])(implicit arg0: Encoder[Key], arg1: Encoder[Left], arg2: Encoder[Right], arg3: Encoder[Result]): LogicalPlan
  10. def deserialize[T](implicit arg0: Encoder[T]): LogicalPlan
  11. def distribute(exprs: Expression*)(n: Int): LogicalPlan
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def except(otherPlan: LogicalPlan, isAll: Boolean): LogicalPlan
  15. def filter[T](func: FilterFunction[T])(implicit arg0: Encoder[T]): LogicalPlan
  16. def filter[T](func: (T) ⇒ Boolean)(implicit arg0: Encoder[T]): LogicalPlan
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def generate(generator: Generator, unrequiredChildIndex: Seq[Int] = Nil, outer: Boolean = false, alias: Option[String] = None, outputNames: Seq[String] = Nil): LogicalPlan
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def groupBy(groupingExprs: Expression*)(aggregateExprs: Expression*): LogicalPlan
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def having(groupingExprs: Expression*)(aggregateExprs: Expression*)(havingCondition: Expression): LogicalPlan
  23. def hint(name: String, parameters: Any*): LogicalPlan
  24. def insertInto(table: LogicalPlan, partition: Map[String, Option[String]] = Map.empty, overwrite: Boolean = false, ifPartitionNotExists: Boolean = false): LogicalPlan
  25. def insertInto(tableName: String): LogicalPlan
  26. def intersect(otherPlan: LogicalPlan, isAll: Boolean): LogicalPlan
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def join(otherPlan: LogicalPlan, joinType: JoinType = Inner, condition: Option[Expression] = None): LogicalPlan
  29. def limit(limitExpr: Expression): LogicalPlan
  30. val logicalPlan: LogicalPlan
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def orderBy(sortExprs: SortOrder*): LogicalPlan
  35. def repartition(num: Integer): LogicalPlan
  36. def select(exprs: Expression*): LogicalPlan
  37. def serialize[T](implicit arg0: Encoder[T]): LogicalPlan
  38. def sortBy(sortExprs: SortOrder*): LogicalPlan
  39. def subquery(alias: Symbol): LogicalPlan
  40. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  41. def toString(): String
    Definition Classes
    AnyRef → Any
  42. def union(otherPlan: LogicalPlan): LogicalPlan
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  46. def where(condition: Expression): LogicalPlan
  47. def window(windowExpressions: Seq[NamedExpression], partitionSpec: Seq[Expression], orderSpec: Seq[SortOrder]): LogicalPlan

Inherited from AnyRef

Inherited from Any

Ungrouped