public class BinaryKVInMemorySortBuffer extends BinaryIndexedSortable
currentSortIndexOffset, currentSortIndexSegment, indexEntrySize, lastIndexEntryOffset, memorySegmentPool, numRecords, OFFSET_LEN, recordBuffer, row1, serializer, serializer1, sortIndex| 限定符和类型 | 方法和说明 |
|---|---|
static BinaryKVInMemorySortBuffer |
createBuffer(NormalizedKeyComputer normalizedKeyComputer,
BinaryRowSerializer keySerializer,
BinaryRowSerializer 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<BinaryRow,BinaryRow>> |
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, BinaryRowSerializer keySerializer, BinaryRowSerializer 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 在类中 BinaryIndexedSortableIOExceptionCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.