Packages

abstract class AggregationIterator extends Iterator[UnsafeRow] with Logging

The base class of SortBasedAggregationIterator, TungstenAggregationIterator and ObjectAggregationIterator. It mainly contains two parts: 1. It initializes aggregate functions. 2. It creates two functions, processRow and generateOutput based on AggregateMode of its aggregate functions. processRow is the function to handle an input. generateOutput is used to generate result.

Linear Supertypes
Logging, Iterator[UnsafeRow], IterableOnceOps[UnsafeRow, Iterator, Iterator[UnsafeRow]], IterableOnce[UnsafeRow], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AggregationIterator
  2. Logging
  3. Iterator
  4. IterableOnceOps
  5. IterableOnce
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AggregationIterator(partIndex: Int, groupingExpressions: Seq[NamedExpression], inputAttributes: Seq[Attribute], aggregateExpressions: Seq[AggregateExpression], aggregateAttributes: Seq[Attribute], initialInputBufferOffset: Int, resultExpressions: Seq[NamedExpression], newMutableProjection: (Seq[Expression], Seq[Attribute]) => MutableProjection)

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
    Definition Classes
    Iterator
  2. implicit class LogStringContext extends AnyRef
    Definition Classes
    Logging

Abstract Value Members

  1. abstract def hasNext: Boolean
    Definition Classes
    Iterator
  2. abstract def next(): UnsafeRow
    Definition Classes
    Iterator
    Annotations
    @throws(scala.this.throws.<init>$default$1[NoSuchElementException])

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: UnsafeRow](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def MDC(key: LogKey, value: Any): MDC
    Attributes
    protected
    Definition Classes
    Logging
  6. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  8. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  9. val aggregateFunctions: Array[AggregateFunction]
    Attributes
    protected
  10. val allImperativeAggregateFunctionPositions: Array[Int]
    Attributes
    protected[this]
  11. val allImperativeAggregateFunctions: Array[ImperativeAggregate]
    Attributes
    protected[this]
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def buffered: BufferedIterator[UnsafeRow]
    Definition Classes
    Iterator
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  15. def collect[B](pf: PartialFunction[UnsafeRow, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  16. def collectFirst[B](pf: PartialFunction[UnsafeRow, B]): Option[B]
    Definition Classes
    IterableOnceOps
  17. def concat[B >: UnsafeRow](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  18. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  19. def copyToArray[B >: UnsafeRow](dest: Array[B], start: Int, n: Int): Int
    Definition Classes
    IterableOnceOps
  20. def copyToArray[B >: UnsafeRow](dest: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  21. def copyToArray[B >: UnsafeRow](dest: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  22. def corresponds[B](that: IterableOnce[B])(p: (UnsafeRow, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  23. def count(p: (UnsafeRow) => Boolean): Int
    Definition Classes
    IterableOnceOps
  24. def distinct: Iterator[UnsafeRow]
    Definition Classes
    Iterator
  25. def distinctBy[B](f: (UnsafeRow) => B): Iterator[UnsafeRow]
    Definition Classes
    Iterator
  26. def drop(n: Int): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  27. def dropWhile(p: (UnsafeRow) => Boolean): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  28. def duplicate: (Iterator[UnsafeRow], Iterator[UnsafeRow])
    Definition Classes
    Iterator
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  31. def exists(p: (UnsafeRow) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  32. val expressionAggInitialProjection: MutableProjection
    Attributes
    protected[this]
  33. def filter(p: (UnsafeRow) => Boolean): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  34. def filterNot(p: (UnsafeRow) => Boolean): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  35. def find(p: (UnsafeRow) => Boolean): Option[UnsafeRow]
    Definition Classes
    IterableOnceOps
  36. def flatMap[B](f: (UnsafeRow) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  37. def flatten[B](implicit ev: (UnsafeRow) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  38. def fold[A1 >: UnsafeRow](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  39. def foldLeft[B](z: B)(op: (B, UnsafeRow) => B): B
    Definition Classes
    IterableOnceOps
  40. def foldRight[B](z: B)(op: (UnsafeRow, B) => B): B
    Definition Classes
    IterableOnceOps
  41. def forall(p: (UnsafeRow) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  42. def foreach[U](f: (UnsafeRow) => U): Unit
    Definition Classes
    IterableOnceOps
  43. val generateOutput: (UnsafeRow, InternalRow) => UnsafeRow
    Attributes
    protected
  44. def generateProcessRow(expressions: Seq[AggregateExpression], functions: Seq[AggregateFunction], inputAttributes: Seq[Attribute]): (InternalRow, InternalRow) => Unit
    Attributes
    protected
  45. def generateResultProjection(): (UnsafeRow, InternalRow) => UnsafeRow
    Attributes
    protected
  46. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  47. def grouped[B >: UnsafeRow](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  48. val groupingAttributes: Seq[Attribute]
    Attributes
    protected
  49. val groupingProjection: UnsafeProjection
    Attributes
    protected
  50. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  51. def indexOf[B >: UnsafeRow](elem: B, from: Int): Int
    Definition Classes
    Iterator
  52. def indexOf[B >: UnsafeRow](elem: B): Int
    Definition Classes
    Iterator
  53. def indexWhere(p: (UnsafeRow) => Boolean, from: Int): Int
    Definition Classes
    Iterator
  54. def initializeAggregateFunctions(expressions: Seq[AggregateExpression], startingInputBufferOffset: Int): Array[AggregateFunction]
    Attributes
    protected
  55. def initializeBuffer(buffer: InternalRow): Unit

    Initializes buffer values for all aggregate functions.

    Initializes buffer values for all aggregate functions.

    Attributes
    protected
  56. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  57. def initializeLogIfNecessary(isInterpreter: Boolean): Unit
    Attributes
    protected
    Definition Classes
    Logging
  58. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  59. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  60. def isTraceEnabled(): Boolean
    Attributes
    protected
    Definition Classes
    Logging
  61. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  62. final def iterator: Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  63. def knownSize: Int
    Definition Classes
    IterableOnce
  64. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  65. def log: Logger
    Attributes
    protected
    Definition Classes
    Logging
  66. def logBasedOnLevel(level: Level)(f: => MessageWithContext): Unit
    Attributes
    protected
    Definition Classes
    Logging
  67. def logDebug(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def logDebug(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def logDebug(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. def logDebug(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  71. def logError(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  72. def logError(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  73. def logError(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  74. def logError(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  75. def logInfo(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  76. def logInfo(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  77. def logInfo(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  78. def logInfo(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  79. def logName: String
    Attributes
    protected
    Definition Classes
    Logging
  80. def logTrace(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  81. def logTrace(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  82. def logTrace(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  83. def logTrace(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  84. def logWarning(msg: => String, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  85. def logWarning(entry: LogEntry, throwable: Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  86. def logWarning(entry: LogEntry): Unit
    Attributes
    protected
    Definition Classes
    Logging
  87. def logWarning(msg: => String): Unit
    Attributes
    protected
    Definition Classes
    Logging
  88. def map[B](f: (UnsafeRow) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  89. def max[B >: UnsafeRow](implicit ord: Ordering[B]): UnsafeRow
    Definition Classes
    IterableOnceOps
  90. def maxBy[B](f: (UnsafeRow) => B)(implicit ord: Ordering[B]): UnsafeRow
    Definition Classes
    IterableOnceOps
  91. def maxByOption[B](f: (UnsafeRow) => B)(implicit ord: Ordering[B]): Option[UnsafeRow]
    Definition Classes
    IterableOnceOps
  92. def maxOption[B >: UnsafeRow](implicit ord: Ordering[B]): Option[UnsafeRow]
    Definition Classes
    IterableOnceOps
  93. def min[B >: UnsafeRow](implicit ord: Ordering[B]): UnsafeRow
    Definition Classes
    IterableOnceOps
  94. def minBy[B](f: (UnsafeRow) => B)(implicit ord: Ordering[B]): UnsafeRow
    Definition Classes
    IterableOnceOps
  95. def minByOption[B](f: (UnsafeRow) => B)(implicit ord: Ordering[B]): Option[UnsafeRow]
    Definition Classes
    IterableOnceOps
  96. def minOption[B >: UnsafeRow](implicit ord: Ordering[B]): Option[UnsafeRow]
    Definition Classes
    IterableOnceOps
  97. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  98. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  99. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  100. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  101. def nextOption(): Option[UnsafeRow]
    Definition Classes
    Iterator
  102. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  103. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  104. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  105. def padTo[B >: UnsafeRow](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  106. def partition(p: (UnsafeRow) => Boolean): (Iterator[UnsafeRow], Iterator[UnsafeRow])
    Definition Classes
    Iterator
  107. def patch[B >: UnsafeRow](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  108. val processRow: (InternalRow, InternalRow) => Unit
    Attributes
    protected
  109. def product[B >: UnsafeRow](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  110. def reduce[B >: UnsafeRow](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  111. def reduceLeft[B >: UnsafeRow](op: (B, UnsafeRow) => B): B
    Definition Classes
    IterableOnceOps
  112. def reduceLeftOption[B >: UnsafeRow](op: (B, UnsafeRow) => B): Option[B]
    Definition Classes
    IterableOnceOps
  113. def reduceOption[B >: UnsafeRow](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  114. def reduceRight[B >: UnsafeRow](op: (UnsafeRow, B) => B): B
    Definition Classes
    IterableOnceOps
  115. def reduceRightOption[B >: UnsafeRow](op: (UnsafeRow, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  116. def reversed: Iterable[UnsafeRow]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  117. def sameElements[B >: UnsafeRow](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  118. def scanLeft[B](z: B)(op: (B, UnsafeRow) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  119. def size: Int
    Definition Classes
    IterableOnceOps
  120. def slice(from: Int, until: Int): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  121. def sliceIterator(from: Int, until: Int): Iterator[UnsafeRow]
    Attributes
    protected
    Definition Classes
    Iterator
  122. def sliding[B >: UnsafeRow](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  123. def span(p: (UnsafeRow) => Boolean): (Iterator[UnsafeRow], Iterator[UnsafeRow])
    Definition Classes
    Iterator → IterableOnceOps
  124. def splitAt(n: Int): (Iterator[UnsafeRow], Iterator[UnsafeRow])
    Definition Classes
    IterableOnceOps
  125. def stepper[S <: Stepper[_]](implicit shape: StepperShape[UnsafeRow, S]): S
    Definition Classes
    IterableOnce
  126. def sum[B >: UnsafeRow](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  127. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  128. def take(n: Int): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  129. def takeWhile(p: (UnsafeRow) => Boolean): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  130. def tapEach[U](f: (UnsafeRow) => U): Iterator[UnsafeRow]
    Definition Classes
    Iterator → IterableOnceOps
  131. def to[C1](factory: Factory[UnsafeRow, C1]): C1
    Definition Classes
    IterableOnceOps
  132. def toArray[B >: UnsafeRow](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  133. final def toBuffer[B >: UnsafeRow]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  134. def toIndexedSeq: IndexedSeq[UnsafeRow]
    Definition Classes
    IterableOnceOps
  135. def toList: List[UnsafeRow]
    Definition Classes
    IterableOnceOps
  136. def toMap[K, V](implicit ev: <:<[UnsafeRow, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  137. def toSeq: Seq[UnsafeRow]
    Definition Classes
    IterableOnceOps
  138. def toSet[B >: UnsafeRow]: Set[B]
    Definition Classes
    IterableOnceOps
  139. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  140. def toVector: Vector[UnsafeRow]
    Definition Classes
    IterableOnceOps
  141. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  142. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  143. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  144. def withFilter(p: (UnsafeRow) => Boolean): Iterator[UnsafeRow]
    Definition Classes
    Iterator
  145. def withLogContext(context: Map[String, String])(body: => Unit): Unit
    Attributes
    protected
    Definition Classes
    Logging
  146. def zip[B](that: IterableOnce[B]): Iterator[(UnsafeRow, B)]
    Definition Classes
    Iterator
  147. def zipAll[A1 >: UnsafeRow, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  148. def zipWithIndex: Iterator[(UnsafeRow, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

  1. final def /:[B](z: B)(op: (B, UnsafeRow) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  2. final def :\[B](z: B)(op: (UnsafeRow, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  3. def aggregate[B](z: => B)(seqop: (B, UnsafeRow) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) For sequential collections, prefer foldLeft(z)(seqop). For parallel collections, use ParIterableLike#aggregate.

  4. final def copyToBuffer[B >: UnsafeRow](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

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

    (Since version 9)

  6. final def hasDefiniteSize: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty

  7. def scanRight[B](z: B)(op: (UnsafeRow, B) => B): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Call scanRight on an Iterable instead.

  8. def seq: AggregationIterator.this.type
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterator.seq always returns the iterator itself

  9. final def toIterator: Iterator[UnsafeRow]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  10. final def toStream: Stream[UnsafeRow]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

Inherited from Logging

Inherited from Iterator[UnsafeRow]

Inherited from IterableOnceOps[UnsafeRow, Iterator, Iterator[UnsafeRow]]

Inherited from IterableOnce[UnsafeRow]

Inherited from AnyRef

Inherited from Any

Ungrouped