Packages

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

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

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

Instance Constructors

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

Type Members

  1. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

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. val aggBufferAttributes: Seq[AttributeReference]
    Definition Classes
    ScalaUDAF → AggregateFunction
  5. val aggBufferSchema: StructType
    Definition Classes
    ScalaUDAF → AggregateFunction
  6. def apply(number: Int): TreeNode[_]
    Definition Classes
    TreeNode
  7. def argString(maxFields: Int): String
    Definition Classes
    TreeNode
  8. def asCode: String
    Definition Classes
    TreeNode
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. lazy val canonicalized: Expression
    Definition Classes
    Expression
  11. def checkInputDataTypes(): TypeCheckResult
    Definition Classes
    ExpectsInputTypes → Expression
  12. val children: Seq[Expression]
    Definition Classes
    ScalaUDAF → TreeNode
  13. def childrenResolved: Boolean
    Definition Classes
    Expression
  14. def clone(): Expression
    Definition Classes
    TreeNode → AnyRef
  15. def collect[B](pf: PartialFunction[Expression, B]): Seq[B]
    Definition Classes
    TreeNode
  16. def collectFirst[B](pf: PartialFunction[Expression, B]): Option[B]
    Definition Classes
    TreeNode
  17. def collectLeaves(): Seq[Expression]
    Definition Classes
    TreeNode
  18. final def containsAllPatterns(patterns: TreePattern*): Boolean
    Definition Classes
    TreePatternBits
  19. final def containsAnyPattern(patterns: TreePattern*): Boolean
    Definition Classes
    TreePatternBits
  20. lazy val containsChild: Set[TreeNode[_]]
    Definition Classes
    TreeNode
  21. final def containsPattern(t: TreePattern): Boolean
    Definition Classes
    TreePatternBits
    Annotations
    @inline()
  22. def copyTagsFrom(other: Expression): Unit
    Definition Classes
    TreeNode
  23. def dataType: DataType
    Definition Classes
    ScalaUDAF → Expression
  24. def defaultResult: Option[Literal]
    Definition Classes
    AggregateFunction
  25. lazy val deterministic: Boolean
    Definition Classes
    ScalaUDAF → Expression
  26. def doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode
    Attributes
    protected
    Definition Classes
    CodegenFallback → Expression
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def eval(buffer: InternalRow): Any
    Definition Classes
    ScalaUDAF → Expression
  29. def exists(f: (Expression) => Boolean): Boolean
    Definition Classes
    TreeNode
  30. def fastEquals(other: TreeNode[_]): Boolean
    Definition Classes
    TreeNode
  31. def find(f: (Expression) => Boolean): Option[Expression]
    Definition Classes
    TreeNode
  32. def flatArguments: Iterator[Any]
    Attributes
    protected
    Definition Classes
    Expression
  33. def flatMap[A](f: (Expression) => IterableOnce[A]): Seq[A]
    Definition Classes
    TreeNode
  34. final def foldable: Boolean
    Definition Classes
    AggregateFunction → Expression
  35. def foreach(f: (Expression) => Unit): Unit
    Definition Classes
    TreeNode
  36. def foreachUp(f: (Expression) => Unit): Unit
    Definition Classes
    TreeNode
  37. def freshCopyIfContainsStatefulExpression(): Expression
    Definition Classes
    Expression
  38. def genCode(ctx: CodegenContext): ExprCode
    Definition Classes
    Expression
  39. def generateTreeString(depth: Int, lastChildren: ArrayList[Boolean], append: (String) => Unit, verbose: Boolean, prefix: String, addSuffix: Boolean, maxFields: Int, printNodeId: Boolean, indent: Int): Unit
    Definition Classes
    TreeNode
  40. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  41. def getDefaultTreePatternBits: BitSet
    Attributes
    protected
    Definition Classes
    TreeNode
  42. def getTagValue[T](tag: TreeNodeTag[T]): Option[T]
    Definition Classes
    TreeNode
  43. def hashCode(): Int
    Definition Classes
    TreeNode → AnyRef → Any
  44. lazy val height: Int
    Definition Classes
    TreeNode
  45. def initialize(buffer: InternalRow): Unit
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  46. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  47. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  48. def innerChildren: Seq[TreeNode[_]]
    Definition Classes
    TreeNode
  49. val inputAggBufferAttributes: Seq[AttributeReference]
    Definition Classes
    ScalaUDAF → AggregateFunction
  50. val inputAggBufferOffset: Int
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  51. val inputTypes: Seq[DataType]
    Definition Classes
    ScalaUDAF → ExpectsInputTypes
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. def isRuleIneffective(ruleId: RuleId): Boolean
    Attributes
    protected
    Definition Classes
    TreeNode
  54. def isTagsEmpty: Boolean
    Definition Classes
    TreeNode
  55. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  56. def jsonFields: List[JField]
    Attributes
    protected
    Definition Classes
    TreeNode
  57. final def legacyWithNewChildren(newChildren: Seq[Expression]): Expression
    Attributes
    protected
    Definition Classes
    TreeNode
  58. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  59. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  60. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  61. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  62. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  63. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  64. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  65. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  66. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  67. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  71. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  72. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  73. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  74. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  75. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  76. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  77. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  78. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  79. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  80. def makeCopy(newArgs: Array[AnyRef]): Expression
    Definition Classes
    TreeNode
  81. def map[A](f: (Expression) => A): Seq[A]
    Definition Classes
    TreeNode
  82. def mapChildren(f: (Expression) => Expression): Expression
    Definition Classes
    TreeNode
  83. def mapProductIterator[B](f: (Any) => B)(implicit arg0: ClassTag[B]): Array[B]
    Attributes
    protected
    Definition Classes
    TreeNode
  84. def markRuleAsIneffective(ruleId: RuleId): Unit
    Attributes
    protected
    Definition Classes
    TreeNode
  85. def merge(buffer1: InternalRow, buffer2: InternalRow): Unit
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  86. def multiTransformDown(rule: PartialFunction[Expression, Seq[Expression]]): LazyList[Expression]
    Definition Classes
    TreeNode
  87. def multiTransformDownWithPruning(cond: (TreePatternBits) => Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Seq[Expression]]): LazyList[Expression]
    Definition Classes
    TreeNode
  88. val mutableAggBufferOffset: Int
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  89. def name: String
    Definition Classes
    ScalaUDAF → UserDefinedExpression
  90. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  91. def nodeName: String
    Definition Classes
    ScalaUDAF → TreeNode
  92. val nodePatterns: Seq[TreePattern]
    Attributes
    protected
    Definition Classes
    TreeNode
  93. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  94. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  95. def nullable: Boolean
    Definition Classes
    ScalaUDAF → Expression
  96. def numberedTreeString: String
    Definition Classes
    TreeNode
  97. val origin: Origin
    Definition Classes
    TreeNode → WithOrigin
  98. def otherCopyArgs: Seq[AnyRef]
    Attributes
    protected
    Definition Classes
    TreeNode
  99. def p(number: Int): Expression
    Definition Classes
    TreeNode
  100. def prettyJson: String
    Definition Classes
    TreeNode
  101. def prettyName: String
    Definition Classes
    Expression
  102. def productElementNames: Iterator[String]
    Definition Classes
    Product
  103. def references: AttributeSet
    Definition Classes
    Expression
  104. lazy val resolved: Boolean
    Definition Classes
    Expression
  105. final def semanticEquals(other: Expression): Boolean
    Definition Classes
    Expression
  106. def semanticHash(): Int
    Definition Classes
    Expression
  107. def setTagValue[T](tag: TreeNodeTag[T], value: T): Unit
    Definition Classes
    TreeNode
  108. def simpleString(maxFields: Int): String
    Definition Classes
    Expression → TreeNode
  109. def simpleStringWithNodeId(): String
    Definition Classes
    Expression → TreeNode
  110. final def sql: String
    Definition Classes
    NonSQLExpression → Expression
  111. def sql(isDistinct: Boolean): String
    Definition Classes
    AggregateFunction
  112. def stateful: Boolean
    Definition Classes
    Expression
  113. def stringArgs: Iterator[Any]
    Attributes
    protected
    Definition Classes
    TreeNode
  114. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  115. lazy val throwable: Boolean
    Definition Classes
    Expression
  116. def toAggString(isDistinct: Boolean): String
    Definition Classes
    AggregateFunction
  117. def toAggregateExpression(isDistinct: Boolean, filter: Option[Expression]): AggregateExpression
    Definition Classes
    AggregateFunction
  118. def toAggregateExpression(): AggregateExpression
    Definition Classes
    AggregateFunction
  119. def toJSON: String
    Definition Classes
    TreeNode
  120. def toString(): String
    Definition Classes
    ScalaUDAF → Expression → TreeNode → AnyRef → Any
  121. def transform(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  122. def transformDown(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  123. def transformDownWithPruning(cond: (TreePatternBits) => Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  124. def transformUp(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  125. def transformUpWithBeforeAndAfterRuleOnChildren(cond: (Expression) => Boolean, ruleId: RuleId)(rule: PartialFunction[(Expression, Expression), Expression]): Expression
    Definition Classes
    TreeNode
  126. def transformUpWithPruning(cond: (TreePatternBits) => Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  127. def transformWithPruning(cond: (TreePatternBits) => Boolean, ruleId: RuleId)(rule: PartialFunction[Expression, Expression]): Expression
    Definition Classes
    TreeNode
  128. lazy val treePatternBits: BitSet
    Definition Classes
    TreeNode → TreePatternBits
  129. def treeString(append: (String) => Unit, verbose: Boolean, addSuffix: Boolean, maxFields: Int, printOperatorId: Boolean): Unit
    Definition Classes
    TreeNode
  130. final def treeString(verbose: Boolean, addSuffix: Boolean, maxFields: Int, printOperatorId: Boolean): String
    Definition Classes
    TreeNode
  131. final def treeString: String
    Definition Classes
    TreeNode
  132. def typeSuffix: String
    Attributes
    protected
    Definition Classes
    Expression
  133. val udaf: UserDefinedAggregateFunction
  134. val udafName: Option[String]
  135. def unsetTagValue[T](tag: TreeNodeTag[T]): Unit
    Definition Classes
    TreeNode
  136. def update(buffer: InternalRow, input: InternalRow): Unit
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  137. final def verboseString(maxFields: Int): String
    Definition Classes
    Expression → TreeNode
  138. def verboseStringWithSuffix(maxFields: Int): String
    Definition Classes
    TreeNode
  139. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  140. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  141. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  142. final def withCanonicalizedChildren: Expression
    Attributes
    protected
    Definition Classes
    Expression
  143. def withLogContext(context: HashMap[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging
  144. final def withNewChildren(newChildren: Seq[Expression]): Expression
    Definition Classes
    TreeNode
  145. def withNewChildrenInternal(newChildren: IndexedSeq[Expression]): ScalaUDAF
    Attributes
    protected
    Definition Classes
    ScalaUDAF → TreeNode
  146. def withNewInputAggBufferOffset(newInputAggBufferOffset: Int): ImperativeAggregate
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  147. def withNewMutableAggBufferOffset(newMutableAggBufferOffset: Int): ImperativeAggregate
    Definition Classes
    ScalaUDAF → ImperativeAggregate

Deprecated Value Members

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

    (Since version 9)

Inherited from Serializable

Inherited from UserDefinedExpression

Inherited from ImplicitCastInputTypes

Inherited from ExpectsInputTypes

Inherited from Logging

Inherited from NonSQLExpression

Inherited from ImperativeAggregate

Inherited from CodegenFallback

Inherited from AggregateFunction

Inherited from Expression

Inherited from TreeNode[Expression]

Inherited from WithOrigin

Inherited from TreePatternBits

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped