public interface HsMemoryDataManagerOperation
HsSubpartitionMemoryDataManager to operate HsMemoryDataManager. Spilling decision may be made and handled inside these operations.| Modifier and Type | Method and Description |
|---|---|
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 |
onConsumerReleased(int subpartitionId,
HsConsumerId consumerId)
This method is called when consumer is decided to released.
|
void |
onDataAvailable(int subpartitionId,
Collection<HsConsumerId> consumerIds)
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,
Collection<HsConsumerId> consumerIds)
subpartitionId - the subpartition's identifier that this consumer belongs to.consumerIds - the consumer's identifier which need notify data available.void onConsumerReleased(int subpartitionId,
HsConsumerId consumerId)
subpartitionId - the subpartition's identifier that this consumer belongs to.consumerId - the consumer's identifier which decided to be released.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.