public interface HsSpillingInfoProvider
Modifier and Type | Interface and Description |
---|---|
static class |
HsSpillingInfoProvider.ConsumeStatus
This enum represents buffer status of consume in hybrid shuffle mode.
|
static class |
HsSpillingInfoProvider.ConsumeStatusWithId
This class represents a pair of
HsSpillingInfoProvider.ConsumeStatus and consumer id. |
static class |
HsSpillingInfoProvider.SpillStatus
This enum represents buffer status of spill in hybrid shuffle mode.
|
Modifier and Type | Method and Description |
---|---|
Deque<BufferIndexAndChannel> |
getBuffersInOrder(int subpartitionId,
HsSpillingInfoProvider.SpillStatus spillStatus,
HsSpillingInfoProvider.ConsumeStatusWithId consumeStatusWithId)
Get all buffers with the expected status from the subpartition.
|
List<Integer> |
getNextBufferIndexToConsume(HsConsumerId consumerId)
Get all subpartition's next buffer index to consume of specific consumer.
|
int |
getNumSubpartitions()
Get the number of downstream consumers.
|
int |
getNumTotalRequestedBuffers()
Get total number of buffers requested from buffer pool.
|
int |
getNumTotalUnSpillBuffers()
Get total number of not decided to spill buffers.
|
int |
getPoolSize()
Get the current size of buffer pool.
|
int getNumSubpartitions()
List<Integer> getNextBufferIndexToConsume(HsConsumerId consumerId)
consumerId
- of the target downstream consumer.Deque<BufferIndexAndChannel> getBuffersInOrder(int subpartitionId, HsSpillingInfoProvider.SpillStatus spillStatus, HsSpillingInfoProvider.ConsumeStatusWithId consumeStatusWithId)
subpartitionId
- target buffers belong to.spillStatus
- expected buffer spill status.consumeStatusWithId
- expected buffer consume status and consumer id.int getNumTotalUnSpillBuffers()
int getNumTotalRequestedBuffers()
int getPoolSize()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.