public class BinaryKVInMemorySortBuffer extends BinaryIndexedSortable
currentSortIndexOffset, currentSortIndexSegment, indexEntrySize, lastIndexEntryOffset, memorySegmentPool, numRecords, OFFSET_LEN, recordBuffer, row1, serializer, serializer1, sortIndex| Modifier and Type | Method and Description |
|---|---|
static BinaryKVInMemorySortBuffer |
createBuffer(NormalizedKeyComputer normalizedKeyComputer,
BinaryRowDataSerializer keySerializer,
BinaryRowDataSerializer valueSerializer,
RecordComparator comparator,
ArrayList<org.apache.flink.core.memory.MemorySegment> recordBufferSegments,
long numElements,
MemorySegmentPool pool) |
org.apache.flink.util.MutableObjectIterator<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.table.data.binary.BinaryRowData,org.apache.flink.table.data.binary.BinaryRowData>> |
getIterator()
Gets an iterator over all KV records in this buffer in their logical order.
|
void |
writeToOutput(org.apache.flink.runtime.memory.AbstractPagedOutputView output)
Spill: Write all records to a
AbstractPagedOutputView. |
checkNextIndexOffset, compare, compare, nextMemorySegment, recordSize, recordsPerSegment, size, swap, swap, writeIndexAndNormalizedKeypublic static BinaryKVInMemorySortBuffer createBuffer(NormalizedKeyComputer normalizedKeyComputer, BinaryRowDataSerializer keySerializer, BinaryRowDataSerializer valueSerializer, RecordComparator comparator, ArrayList<org.apache.flink.core.memory.MemorySegment> recordBufferSegments, long numElements, MemorySegmentPool pool) throws IOException
IOExceptionpublic void writeToOutput(org.apache.flink.runtime.memory.AbstractPagedOutputView output)
throws IOException
BinaryIndexedSortableAbstractPagedOutputView.writeToOutput in class BinaryIndexedSortableIOExceptionpublic final org.apache.flink.util.MutableObjectIterator<org.apache.flink.api.java.tuple.Tuple2<org.apache.flink.table.data.binary.BinaryRowData,org.apache.flink.table.data.binary.BinaryRowData>> getIterator()
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.