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

Inherited from AnyRef

Inherited from Any

Ungrouped