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): Expression

    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 getNodeNumbered(number: MutableInt): Expression

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  37. def hashCode(): Int

    Permalink
    Definition Classes
    TreeNode → AnyRef → Any
  38. def initialize(buffer: MutableRow): Unit

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  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 isDebugEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  45. final def isInfoEnabled: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  46. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  47. final def isTraceEnabled: Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  68. def nodeName: String

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

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

    Permalink
    Definition Classes
    AnyRef
  71. def nullable: Boolean

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

    Permalink
    Definition Classes
    TreeNode
  73. val origin: Origin

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

    Permalink
    Attributes
    protected
    Definition Classes
    TreeNode
  75. def prettyJson: String

    Permalink
    Definition Classes
    TreeNode
  76. def prettyName: String

    Permalink
    Definition Classes
    Expression
  77. def references: AttributeSet

    Permalink
    Definition Classes
    Expression
  78. lazy val resolved: Boolean

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

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

    Permalink
    Definition Classes
    Expression
  81. def simpleString: String

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AggregateFunction
  90. def toJSON: String

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

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

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

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

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

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

    Permalink
    Definition Classes
    TreeNode
  97. def treeString: String

    Permalink
    Definition Classes
    TreeNode
  98. val udaf: UserDefinedAggregateFunction

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    ScalaUDAF → ImperativeAggregate
  106. 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