public class HashSubpartitionBufferAccumulator extends Object
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.
| 构造器和说明 |
|---|
HashSubpartitionBufferAccumulator(TieredStorageSubpartitionId subpartitionId,
int bufferSize,
HashSubpartitionBufferAccumulatorContext bufferAccumulatorContext,
boolean isPartialRecordAllowed) |
public HashSubpartitionBufferAccumulator(TieredStorageSubpartitionId subpartitionId, int bufferSize, HashSubpartitionBufferAccumulatorContext bufferAccumulatorContext, boolean isPartialRecordAllowed)
public void append(ByteBuffer record, Buffer.DataType dataType) throws IOException
IOExceptionpublic void close()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.