Class HashSubpartitionBufferAccumulator
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.hybrid.tiered.storage.HashSubpartitionBufferAccumulator
-
public class HashSubpartitionBufferAccumulator extends Object
HashSubpartitionBufferAccumulatoraccumulates 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
Constructors Constructor Description HashSubpartitionBufferAccumulator(TieredStorageSubpartitionId subpartitionId, int bufferSize, HashSubpartitionBufferAccumulatorContext bufferAccumulatorContext, boolean isPartialRecordAllowed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(ByteBuffer record, Buffer.DataType dataType)voidclose()
-
-
-
Constructor Detail
-
HashSubpartitionBufferAccumulator
public HashSubpartitionBufferAccumulator(TieredStorageSubpartitionId subpartitionId, int bufferSize, HashSubpartitionBufferAccumulatorContext bufferAccumulatorContext, boolean isPartialRecordAllowed)
-
-
Method Detail
-
append
public void append(ByteBuffer record, Buffer.DataType dataType) throws IOException
- Throws:
IOException
-
close
public void close()
-
-