public class HsFullSpillingStrategy extends Object implements HsSpillingStrategy
HsSpillingStrategy that spilled all buffers to disk.HsSpillingStrategy.Decision| 构造器和说明 |
|---|
HsFullSpillingStrategy(HybridShuffleConfiguration hybridShuffleConfiguration) |
| 限定符和类型 | 方法和说明 |
|---|---|
HsSpillingStrategy.Decision |
decideActionWithGlobalInfo(HsSpillingInfoProvider spillingInfoProvider)
Make a decision based on global information.
|
Optional<HsSpillingStrategy.Decision> |
onBufferConsumed(BufferIndexAndChannel consumedBuffer)
Make a decision when a buffer is consumed.
|
Optional<HsSpillingStrategy.Decision> |
onBufferFinished(int numTotalUnSpillBuffers,
int currentPoolSize)
Make a decision when a buffer becomes finished.
|
Optional<HsSpillingStrategy.Decision> |
onMemoryUsageChanged(int numTotalRequestedBuffers,
int currentPoolSize)
Make a decision when memory usage is changed.
|
HsSpillingStrategy.Decision |
onResultPartitionClosed(HsSpillingInfoProvider spillingInfoProvider)
Make a decision when result partition is closed.
|
public HsFullSpillingStrategy(HybridShuffleConfiguration hybridShuffleConfiguration)
public Optional<HsSpillingStrategy.Decision> onBufferFinished(int numTotalUnSpillBuffers, int currentPoolSize)
HsSpillingStrategyonBufferFinished 在接口中 HsSpillingStrategynumTotalUnSpillBuffers - total number of buffers not spill.HsSpillingStrategy.Decision based on the provided information, or Optional.empty() if
the decision cannot be made, which indicates global information is needed.public Optional<HsSpillingStrategy.Decision> onBufferConsumed(BufferIndexAndChannel consumedBuffer)
HsSpillingStrategyonBufferConsumed 在接口中 HsSpillingStrategyconsumedBuffer - the buffer that is consumed.HsSpillingStrategy.Decision based on the provided information, or Optional.empty() if
the decision cannot be made, which indicates global information is needed.public Optional<HsSpillingStrategy.Decision> onMemoryUsageChanged(int numTotalRequestedBuffers, int currentPoolSize)
HsSpillingStrategyonMemoryUsageChanged 在接口中 HsSpillingStrategynumTotalRequestedBuffers - total number of buffers requested.currentPoolSize - current value of buffer pool size.HsSpillingStrategy.Decision based on the provided information, or Optional.empty() if
the decision cannot be made, which indicates global information is needed.public HsSpillingStrategy.Decision decideActionWithGlobalInfo(HsSpillingInfoProvider spillingInfoProvider)
HsSpillingStrategyHsSpillingInfoProvider, the caller should take care of the thread safety.decideActionWithGlobalInfo 在接口中 HsSpillingStrategyspillingInfoProvider - that provides information about the current status.HsSpillingStrategy.Decision based on the global information.public HsSpillingStrategy.Decision onResultPartitionClosed(HsSpillingInfoProvider spillingInfoProvider)
HsSpillingStrategyHsSpillingInfoProvider, the caller should take care of the thread safety.onResultPartitionClosed 在接口中 HsSpillingStrategyspillingInfoProvider - that provides information about the current status.HsSpillingStrategy.Decision based on the global information.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.