Packages

c

org.apache.spark.sql.execution

UnsafeKVExternalSorter

final class UnsafeKVExternalSorter extends AnyRef

A class for performing external sorting on key-value records. Both key and value are UnsafeRows.

Note that this class allows optionally passing in a BytesToBytesMap directly in order to perform in-place sorting of records in the map.

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

Instance Constructors

  1. new UnsafeKVExternalSorter(keySchema: StructType, valueSchema: StructType, blockManager: BlockManager, serializerManager: SerializerManager, pageSizeBytes: Long, numElementsForSpillThreshold: Int, map: BytesToBytesMap)
  2. new UnsafeKVExternalSorter(keySchema: StructType, valueSchema: StructType, blockManager: BlockManager, serializerManager: SerializerManager, pageSizeBytes: Long, numElementsForSpillThreshold: Int)

Type Members

  1. class KVSorterIterator extends KVIterator[UnsafeRow, UnsafeRow]

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 cleanupResources(): Unit

    Frees this sorter's in-memory data structures and cleans up its spill files.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getPeakMemoryUsedBytes(): Long

    Return the peak memory used so far, in bytes.

  11. def getSpillSize(): Long

    Return the total number of bytes that has been spilled into disk so far.

  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def insertKV(key: UnsafeRow, value: UnsafeRow): Unit

    Inserts a key-value record into the sorter.

    Inserts a key-value record into the sorter. If the sorter no longer has enough memory to hold the record, the sorter sorts the existing records in-memory, writes them out as partially sorted runs, and then reallocates memory to hold the new record.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def merge(other: UnsafeKVExternalSorter): Unit

    Merges another UnsafeKVExternalSorter into this, the other one will be emptied.

    Merges another UnsafeKVExternalSorter into this, the other one will be emptied.

    Exceptions thrown
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def sortedIterator(): KVSorterIterator

    Returns a sorted iterator.

    Returns a sorted iterator. It is the caller's responsibility to call cleanupResources() after consuming this iterator.

  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped