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.
- Alphabetic
- By Inheritance
- UnsafeFixedWidthAggregationMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new UnsafeFixedWidthAggregationMap(emptyAggregationBuffer: InternalRow, aggregationBufferSchema: StructType, groupingKeySchema: StructType, taskContext: TaskContext, initialCapacity: Int, pageSizeBytes: Long)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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.
- 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.
- def getAggregationBufferFromUnsafeRow(key: UnsafeRow, hash: Int): UnsafeRow
- def getAggregationBufferFromUnsafeRow(key: UnsafeRow): UnsafeRow
- def getAvgHashProbeBucketListIterations(): Double
Gets the average bucket list iterations per lookup in the underlying
BytesToBytesMap
. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getPeakMemoryUsedBytes(): Long
Return the peak memory used so far, in bytes.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()