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. lazy val containsChild: Set[TreeNode[_]]

    Permalink
    Definition Classes
    TreeNode
  18. def dataType: DataType

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

    Permalink
    Definition Classes
    AggregateFunction
  20. def deterministic: Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TreeNode
  29. final def foldable: Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  35. def getNodeNumbered(number: MutableInt): Expression

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  65. def nodeName: String

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

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

    Permalink
    Definition Classes
    AnyRef
  68. def nullable: Boolean

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

    Permalink
    Definition Classes
    TreeNode
  70. val origin: Origin

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

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

    Permalink
    Definition Classes
    TreeNode
  73. def prettyName: String

    Permalink
    Definition Classes
    Expression
  74. def references: AttributeSet

    Permalink
    Definition Classes
    Expression
  75. lazy val resolved: Boolean

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

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

    Permalink
    Definition Classes
    Expression
  78. def simpleString: String

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AggregateFunction
  87. def toJSON: String

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

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

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

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

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

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

    Permalink
    Definition Classes
    TreeNode
  94. def treeString: String

    Permalink
    Definition Classes
    TreeNode
  95. val udaf: UserDefinedAggregateFunction

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

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

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

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

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

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

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

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