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
  • ExpressionConversions
  • ImplicitOperators
  • expressions
  • plans
t

org.apache.spark.sql.catalyst.dsl

ExpressionConversions

trait ExpressionConversions extends AnyRef

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

Type Members

  1. implicit class DslAttr extends ImplicitAttribute
  2. implicit class DslAttribute extends AnyRef
  3. implicit class DslExpression extends ImplicitOperators
  4. implicit class DslString extends ImplicitOperators
  5. implicit class DslSymbol extends ImplicitAttribute
  6. abstract class ImplicitAttribute extends ImplicitOperators
  7. implicit class StringToAttributeConversionHelper extends AnyRef

    Converts $"col name" into an analysis.UnresolvedAttribute.

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 abs(e: Expression): Expression
  5. def approxCountDistinct(e: Expression, rsd: Double = 0.05, filter: Option[Expression] = None): Expression
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def avg(e: Expression, filter: Option[Expression] = None): Expression
  8. implicit def bigDecimalToLiteral(d: BigDecimal): Literal
  9. implicit def bigDecimalToLiteral(d: BigDecimal): Literal
  10. implicit def binaryToLiteral(a: Array[Byte]): Literal
  11. def bitAnd(e: Expression, filter: Option[Expression] = None): Expression
  12. def bitOr(e: Expression, filter: Option[Expression] = None): Expression
  13. def bitXor(e: Expression, filter: Option[Expression] = None): Expression
  14. implicit def booleanToLiteral(b: Boolean): Literal
  15. implicit def byteToLiteral(b: Byte): Literal
  16. def callFunction[T, U](func: (T) ⇒ U, returnType: DataType, argument: Expression): Expression
  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  18. def coalesce(args: Expression*): Expression
  19. def count(e: Expression, filter: Option[Expression] = None): Expression
  20. def countDistinct(e: Expression*): Expression
  21. def countDistinctWithFilter(filter: Expression, e: Expression*): Expression
  22. implicit def dateToLiteral(d: Date): Literal
  23. implicit def decimalToLiteral(d: Decimal): Literal
  24. implicit def doubleToLiteral(d: Double): Literal
  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  27. def first(e: Expression, filter: Option[Expression] = None): Expression
  28. implicit def floatToLiteral(f: Float): Literal
  29. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. def greatest(args: Expression*): Expression
  31. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. implicit def instantToLiteral(i: Instant): Literal
  33. implicit def intToLiteral(i: Int): Literal
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def last(e: Expression, filter: Option[Expression] = None): Expression
  36. def least(args: Expression*): Expression
  37. implicit def localDateToLiteral(d: LocalDate): Literal
  38. implicit def longToLiteral(l: Long): Literal
  39. def lower(e: Expression): Expression
  40. def max(e: Expression, filter: Option[Expression] = None): Expression
  41. def maxDistinct(e: Expression, filter: Option[Expression] = None): Expression
  42. def min(e: Expression, filter: Option[Expression] = None): Expression
  43. def minDistinct(e: Expression, filter: Option[Expression] = None): Expression
  44. def namedStruct(e: Expression*): Expression
  45. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  48. def rand(e: Long): Expression
  49. implicit def shortToLiteral(s: Short): Literal
  50. def sqrt(e: Expression): Expression
  51. def star(names: String*): Expression
  52. implicit def stringToLiteral(s: String): Literal
  53. def sum(e: Expression, filter: Option[Expression] = None): Expression
  54. def sumDistinct(e: Expression, filter: Option[Expression] = None): Expression
  55. implicit def symbolToUnresolvedAttribute(s: Symbol): UnresolvedAttribute
  56. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  57. implicit def timestampToLiteral(t: Timestamp): Literal
  58. def toString(): String
    Definition Classes
    AnyRef → Any
  59. def upper(e: Expression): Expression
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. def windowExpr(windowFunc: Expression, windowSpec: WindowSpecDefinition): WindowExpression
  64. def windowSpec(partitionSpec: Seq[Expression], orderSpec: Seq[SortOrder], frame: WindowFrame): WindowSpecDefinition

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped