Class HashSubpartitionBufferAccumulator
java.lang.Object
org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage.HashSubpartitionBufferAccumulator
HashSubpartitionBufferAccumulator accumulates the records in a subpartition.
Note that this class need not be thread-safe, because it should only be accessed from the main thread.
-
Constructor Summary
ConstructorsConstructorDescriptionHashSubpartitionBufferAccumulator(TieredStorageSubpartitionId subpartitionId, int bufferSize, HashSubpartitionBufferAccumulatorContext bufferAccumulatorContext, boolean isPartialRecordAllowed) -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(ByteBuffer record, Buffer.DataType dataType) voidclose()
-
Constructor Details
-
HashSubpartitionBufferAccumulator
public HashSubpartitionBufferAccumulator(TieredStorageSubpartitionId subpartitionId, int bufferSize, HashSubpartitionBufferAccumulatorContext bufferAccumulatorContext, boolean isPartialRecordAllowed)
-
-
Method Details
-
append
- Throws:
IOException
-
close
public void close()
-