public interface HsMemoryDataManagerOperation
HsSubpartitionMemoryDataManager to operate HsMemoryDataManager. Spilling decision may be made and handled inside these operations.| 限定符和类型 | 方法和说明 |
|---|---|
void |
markBufferReleasedFromFile(int subpartitionId,
int bufferIndex)
This method is called when buffer should mark as released in
HsFileDataIndex. |
void |
onBufferConsumed(BufferIndexAndChannel consumedBuffer)
This method is called when buffer is consumed.
|
void |
onBufferFinished()
This method is called when buffer is finished.
|
void |
onDataAvailable(int subpartitionId)
This method is called when subpartition data become available.
|
BufferBuilder |
requestBufferFromPool()
Request buffer from buffer pool.
|
BufferBuilder requestBufferFromPool() throws InterruptedException
InterruptedExceptionvoid markBufferReleasedFromFile(int subpartitionId,
int bufferIndex)
HsFileDataIndex.subpartitionId - the subpartition that target buffer belong to.bufferIndex - index of buffer to mark as released.void onBufferConsumed(BufferIndexAndChannel consumedBuffer)
consumedBuffer - target buffer to mark as consumed.void onBufferFinished()
void onDataAvailable(int subpartitionId)
subpartitionId - the subpartition need notify data available.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.