Packages

c

org.apache.spark.sql.execution

UnsafeFixedWidthAggregationMap

final class UnsafeFixedWidthAggregationMap extends AnyRef

Unsafe-based HashMap for performing aggregations where the aggregated values are fixed-width.

This map supports a maximum of 2 billion keys.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnsafeFixedWidthAggregationMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new UnsafeFixedWidthAggregationMap(emptyAggregationBuffer: InternalRow, aggregationBufferSchema: StructType, groupingKeySchema: StructType, taskContext: TaskContext, initialCapacity: Int, pageSizeBytes: Long)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def destructAndCreateExternalSorter(): UnsafeKVExternalSorter

    Sorts the map's records in place, spill them to disk, and returns an UnsafeKVExternalSorter

    Sorts the map's records in place, spill them to disk, and returns an UnsafeKVExternalSorter

    Note that the map will be reset for inserting new records, and the returned sorter can NOT be used to insert records.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def free(): Unit

    Free the memory associated with this map.

    Free the memory associated with this map. This is idempotent and can be called multiple times.

  11. def getAggregationBuffer(groupingKey: InternalRow): UnsafeRow

    Return the aggregation buffer for the current group.

    Return the aggregation buffer for the current group. For efficiency, all calls to this method return the same object. If additional memory could not be allocated, then this method will signal an error by returning null.

  12. def getAggregationBufferFromUnsafeRow(key: UnsafeRow, hash: Int): UnsafeRow
  13. def getAggregationBufferFromUnsafeRow(key: UnsafeRow): UnsafeRow
  14. def getAvgHashProbeBucketListIterations(): Double

    Gets the average bucket list iterations per lookup in the underlying BytesToBytesMap.

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getPeakMemoryUsedBytes(): Long

    Return the peak memory used so far, in bytes.

  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def iterator(): KVIterator[UnsafeRow, UnsafeRow]

    Returns an iterator over the keys and values in this map.

    Returns an iterator over the keys and values in this map. This uses destructive iterator of BytesToBytesMap. So it is illegal to call any other method on this map after iterator() has been called.

    For efficiency, each call returns the same object.

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped