public class TieredStorageSortBuffer extends SortBuffer
SortBasedDataBuffer
need not recycle the read target buffer..bufferRecycler, freeSegments, INDEX_ENTRY_SIZE, isFinished, isReleased, lastIndexEntryAddresses, numTotalBytesRead, readIndexEntryAddress, readOrderIndex, recordRemainingBytes, segments, subpartitionReadOrder
Constructor and Description |
---|
TieredStorageSortBuffer(LinkedList<MemorySegment> freeSegments,
BufferRecycler bufferRecycler,
int numSubpartitions,
int bufferSize,
int numGuaranteedBuffers,
boolean isPartialRecordAllowed) |
Modifier and Type | Method and Description |
---|---|
BufferWithSubpartition |
getNextBuffer(MemorySegment transitBuffer)
Copies data in this
DataBuffer to the target MemorySegment in subpartition
index order and returns BufferWithSubpartition which contains the copied data and the
corresponding subpartition index. |
append, copyRecordOrEvent, finish, getSegmentIndexFromPointer, getSegmentOffsetFromPointer, hasRemaining, isFinished, isReleased, numTotalBytes, numTotalRecords, release, updateReadSubpartitionAndIndexEntryAddress
public TieredStorageSortBuffer(LinkedList<MemorySegment> freeSegments, BufferRecycler bufferRecycler, int numSubpartitions, int bufferSize, int numGuaranteedBuffers, boolean isPartialRecordAllowed)
public BufferWithSubpartition getNextBuffer(@Nullable MemorySegment transitBuffer)
DataBuffer
DataBuffer
to the target MemorySegment
in subpartition
index order and returns BufferWithSubpartition
which contains the copied data and the
corresponding subpartition index.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.