public class AllFinishedInputConsumableDecider extends Object implements InputConsumableDecider
AllFinishedInputConsumableDecider is a special InputConsumableDecider. The input
is considered to be consumable only when all producer partitions are finished.| Modifier and Type | Class and Description |
|---|---|
static class |
AllFinishedInputConsumableDecider.Factory
Factory for
AllFinishedInputConsumableDecider. |
| Constructor and Description |
|---|
AllFinishedInputConsumableDecider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConsumableBasedOnFinishedProducers(ConsumedPartitionGroup consumedPartitionGroup)
Determining whether the consumed partition group is consumable based on finished producers.
|
boolean |
isInputConsumable(SchedulingExecutionVertex executionVertex,
Set<ExecutionVertexID> verticesToDeploy,
Map<ConsumedPartitionGroup,Boolean> consumableStatusCache)
Determining whether the input of an execution vertex is consumable.
|
public boolean isInputConsumable(SchedulingExecutionVertex executionVertex, Set<ExecutionVertexID> verticesToDeploy, Map<ConsumedPartitionGroup,Boolean> consumableStatusCache)
InputConsumableDeciderisInputConsumable in interface InputConsumableDeciderexecutionVertex - to be determined whether it's input is consumable.verticesToDeploy - vertices that are not yet scheduled but already decided to be
scheduled.consumableStatusCache - a cache for ConsumedPartitionGroup consumable status.
This is to avoid repetitive computation.public boolean isConsumableBasedOnFinishedProducers(ConsumedPartitionGroup consumedPartitionGroup)
InputConsumableDeciderisConsumableBasedOnFinishedProducers in interface InputConsumableDeciderconsumedPartitionGroup - to be determined whether it is consumable.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.