Class

org.apache.spark.sql.execution.aggregate

ScalaUDAF

Related Doc: package aggregate

Permalink

case class ScalaUDAF(children: Seq[Expression], udaf: UserDefinedAggregateFunction, mutableAggBufferOffset: Int = 0, inputAggBufferOffset: Int = 0) extends ImperativeAggregate with NonSQLExpression with Logging with Product with Serializable

The internal wrapper used to hook a UserDefinedAggregateFunction udaf in the internal aggregation code path.

Linear Supertypes
Serializable, Serializable, Logging, NonSQLExpression, ImperativeAggregate, CodegenFallback, AggregateFunction, ImplicitCastInputTypes, ExpectsInputTypes, Expression, TreeNode[Expression], Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaUDAF
  2. Serializable
  3. Serializable
  4. Logging
  5. NonSQLExpression
  6. ImperativeAggregate
  7. CodegenFallback
  8. AggregateFunction
  9. ImplicitCastInputTypes
  10. ExpectsInputTypes
  11. Expression
  12. TreeNode
  13. Product
  14. Equals
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaUDAF(children: Seq[Expression], udaf: UserDefinedAggregateFunction, mutableAggBufferOffset: Int = 0, inputAggBufferOffset: Int = 0)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val aggBufferAttributes: Seq[AttributeReference]

    Permalink
    Definition Classes
    ScalaUDAF → AggregateFunction
  5. val aggBufferSchema: StructType

    Permalink
    Definition Classes
    ScalaUDAF → AggregateFunction
  6. def apply(number: Int): TreeNode[_]

    Permalink
    Definition Classes
    TreeNode
  7. def argString: String

    Permalink
    Definition Classes
    TreeNode
  8. def asCode: String

    Permalink
    Definition Classes
    TreeNode
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. lazy val canonicalized: Expression

    Permalink
    Definition Classes
    Expression
  11. def checkInputDataTypes(): TypeCheckResult

    Permalink
    Definition Classes
    ExpectsInputTypes → Expression
  12. val children: Seq[Expression]

    Permalink
    Definition Classes
    ScalaUDAF → TreeNode
  13. def childrenResolved: Boolean

    Permalink
    Definition Classes
    Expression
  14. def clone(): AnyRef

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

    Permalink
    Definition Classes
    TreeNode
  16. def collectFirst[B](pf: PartialFunction[Expression, B]): Option[B]

    Permalink
    Definition Classes
    TreeNode
  17. def collectLeaves(): Seq[Expression]

    Permalink
    Definition Classes
    TreeNode
  18. lazy val containsChild: Set[TreeNode[_]]

    Permalink
    Definition Classes
    TreeNode
  19. def dataType: DataType

    Permalink
    Definition Classes
    ScalaUDAF → Expression
  20. def defaultResult: Option[Literal]

    Permalink
    Definition Classes
    AggregateFunction
  21. def deterministic: Boolean

    Permalink
    Definition Classes
    ScalaUDAF → Expression
  22. def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode

    Permalink
    Attributes
    protected
    Definition Classes
    CodegenFallback → Expression
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def eval(buffer: InternalRow): Any

    Permalink
    Definition Classes
    ScalaUDAF → Expression
  25. def fastEquals(other: TreeNode[_]): Boolean

    Permalink
    Definition Classes
    TreeNode
  26. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def find(f: (Expression) ⇒ Boolean): Option[Expression]

    Permalink
    Definition Classes
    TreeNode
  28. def flatArguments: Iterator[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    Expression
  29. def flatMap[A](f: (Expression) ⇒ TraversableOnce[A]): Seq[A]

    Permalink
    Definition Classes
    TreeNode
  30. final def foldable: Boolean

    Permalink
    Definition Classes
    AggregateFunction → Expression
  31. def foreach(f: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    TreeNode
  32. def foreachUp(f: (Expression) ⇒ Unit): Unit

    Permalink
    Definition Classes
    TreeNode
  33. def genCode(ctx: CodegenContext): ExprCode

    Permalink
    Definition Classes
    Expression
  34. def generateTreeString(depth: Int, lastChildren: Seq[Boolean], builder: StringBuilder, verbose: Boolean, prefix: String): StringBuilder

    Permalink
    Definition Classes
    TreeNode
  35. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  36. def hashCode(): Int

    Permalink
    Definition Classes
    TreeNode → AnyRef → Any
  37. def initialize(buffer: InternalRow): Unit

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  38. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  39. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def innerChildren: Seq[TreeNode[_]]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  41. val inputAggBufferAttributes: Seq[AttributeReference]

    Permalink
    Definition Classes
    ScalaUDAF → AggregateFunction
  42. val inputAggBufferOffset: Int

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  43. val inputTypes: Seq[DataType]

    Permalink
    Definition Classes
    ScalaUDAF → ExpectsInputTypes
  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  46. def jsonFields: List[JField]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  47. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  48. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  49. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  50. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  51. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  52. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  53. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  54. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  55. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  56. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  57. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  58. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  59. def makeCopy(newArgs: Array[AnyRef]): Expression

    Permalink
    Definition Classes
    TreeNode
  60. def map[A](f: (Expression) ⇒ A): Seq[A]

    Permalink
    Definition Classes
    TreeNode
  61. def mapChildren(f: (Expression) ⇒ Expression): Expression

    Permalink
    Definition Classes
    TreeNode
  62. def mapProductIterator[B](f: (Any) ⇒ B)(implicit arg0: ClassTag[B]): Array[B]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  63. def merge(buffer1: InternalRow, buffer2: InternalRow): Unit

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  64. val mutableAggBufferOffset: Int

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  65. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  66. def nodeName: String

    Permalink
    Definition Classes
    ScalaUDAF → TreeNode
  67. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  68. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  69. def nullable: Boolean

    Permalink
    Definition Classes
    ScalaUDAF → Expression
  70. def numberedTreeString: String

    Permalink
    Definition Classes
    TreeNode
  71. val origin: Origin

    Permalink
    Definition Classes
    TreeNode
  72. def otherCopyArgs: Seq[AnyRef]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  73. def p(number: Int): Expression

    Permalink
    Definition Classes
    TreeNode
  74. def prettyJson: String

    Permalink
    Definition Classes
    TreeNode
  75. def prettyName: String

    Permalink
    Definition Classes
    Expression
  76. def references: AttributeSet

    Permalink
    Definition Classes
    Expression
  77. lazy val resolved: Boolean

    Permalink
    Definition Classes
    Expression
  78. def semanticEquals(other: Expression): Boolean

    Permalink
    Definition Classes
    Expression
  79. def semanticHash(): Int

    Permalink
    Definition Classes
    Expression
  80. def simpleString: String

    Permalink
    Definition Classes
    Expression → TreeNode
  81. final def sql: String

    Permalink
    Definition Classes
    NonSQLExpression → Expression
  82. def sql(isDistinct: Boolean): String

    Permalink
    Definition Classes
    AggregateFunction
  83. def stringArgs: Iterator[Any]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  84. def supportsPartial: Boolean

    Permalink
    Definition Classes
    AggregateFunction
  85. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  86. def toAggString(isDistinct: Boolean): String

    Permalink
    Definition Classes
    AggregateFunction
  87. def toAggregateExpression(isDistinct: Boolean): AggregateExpression

    Permalink
    Definition Classes
    AggregateFunction
  88. def toAggregateExpression(): AggregateExpression

    Permalink
    Definition Classes
    AggregateFunction
  89. def toJSON: String

    Permalink
    Definition Classes
    TreeNode
  90. def toString(): String

    Permalink
    Definition Classes
    ScalaUDAF → Expression → TreeNode → AnyRef → Any
  91. def transform(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  92. def transformDown(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  93. def transformUp(rule: PartialFunction[Expression, Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  94. def treeString(verbose: Boolean): String

    Permalink
    Definition Classes
    TreeNode
  95. def treeString: String

    Permalink
    Definition Classes
    TreeNode
  96. val udaf: UserDefinedAggregateFunction

    Permalink
  97. def update(buffer: InternalRow, input: InternalRow): Unit

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  98. final def verboseString: String

    Permalink
    Definition Classes
    Expression → TreeNode
  99. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  102. def withNewChildren(newChildren: Seq[Expression]): Expression

    Permalink
    Definition Classes
    TreeNode
  103. def withNewInputAggBufferOffset(newInputAggBufferOffset: Int): ImperativeAggregate

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  104. def withNewMutableAggBufferOffset(newMutableAggBufferOffset: Int): ImperativeAggregate

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate

Inherited from Serializable

Inherited from Serializable

Inherited from Logging

Inherited from NonSQLExpression

Inherited from ImperativeAggregate

Inherited from CodegenFallback

Inherited from AggregateFunction

Inherited from ImplicitCastInputTypes

Inherited from ExpectsInputTypes

Inherited from Expression

Inherited from TreeNode[Expression]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped