Allocates more memory in order to insert an additional record. This will request
additional memory f
Force all memory and spill files to be deleted; called by shuffle error-handling
Close the sorter, causing any buffered data to be sorted and written out to
Return the peak memory used so far, in bytes.
Checks whether there is enough space to insert an additional record in to the
sort pointer array and
Write a record to the shuffle sorter.