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. Protected

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(classOf[java.lang.CloneNotSupportedException]) @native()
  18. def coalesce(args: Expression*): Expression
  19. def collectList(e: Expression, filter: Option[Expression] = None): Expression
  20. def collectSet(e: Expression, filter: Option[Expression] = None): Expression
  21. def count(e: Expression, filter: Option[Expression] = None): Expression
  22. def countDistinct(e: Expression*): Expression
  23. def countDistinctWithFilter(filter: Expression, e: Expression*): Expression
  24. implicit def dateToLiteral(d: Date): Literal
  25. implicit def decimalToLiteral(d: Decimal): Literal
  26. implicit def doubleToLiteral(d: Double): Literal
  27. implicit def durationToLiteral(d: Duration): Literal
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  31. def first(e: Expression, filter: Option[Expression] = None): Expression
  32. implicit def floatToLiteral(f: Float): Literal
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def greatest(args: Expression*): Expression
  35. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  36. implicit def instantToLiteral(i: Instant): Literal
  37. implicit def intToLiteral(i: Int): Literal
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. def last(e: Expression, filter: Option[Expression] = None): Expression
  40. def least(args: Expression*): Expression
  41. implicit def localDateToLiteral(d: LocalDate): Literal
  42. implicit def longToLiteral(l: Long): Literal
  43. def lower(e: Expression): Expression
  44. def max(e: Expression, filter: Option[Expression] = None): Expression
  45. def maxDistinct(e: Expression, filter: Option[Expression] = None): Expression
  46. def min(e: Expression, filter: Option[Expression] = None): Expression
  47. def minDistinct(e: Expression, filter: Option[Expression] = None): Expression
  48. def namedStruct(e: Expression*): Expression
  49. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  50. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  51. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. implicit def periodToLiteral(p: Period): Literal
  53. def rand(e: Long): Expression
  54. implicit def shortToLiteral(s: Short): Literal
  55. def sqrt(e: Expression): Expression
  56. def star(names: String*): Expression
  57. implicit def stringToLiteral(s: String): Literal
  58. def sum(e: Expression, filter: Option[Expression] = None): Expression
  59. def sumDistinct(e: Expression, filter: Option[Expression] = None): Expression
  60. implicit def symbolToUnresolvedAttribute(s: Symbol): UnresolvedAttribute
  61. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  62. implicit def timestampNTZToLiteral(l: LocalDateTime): Literal
  63. implicit def timestampToLiteral(t: Timestamp): Literal
  64. def toString(): String
    Definition Classes
    AnyRef → Any
  65. def upper(e: Expression): Expression
  66. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  67. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  68. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  69. def windowExpr(windowFunc: Expression, windowSpec: WindowSpecDefinition): WindowExpression
  70. def windowSpec(partitionSpec: Seq[Expression], orderSpec: Seq[SortOrder], frame: WindowFrame): WindowSpecDefinition

Inherited from AnyRef

Inherited from Any

Ungrouped