Class PartialFinishedInputConsumableDecider
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.strategy.PartialFinishedInputConsumableDecider
-
- All Implemented Interfaces:
InputConsumableDecider
public class PartialFinishedInputConsumableDecider extends Object implements InputConsumableDecider
PartialFinishedInputConsumableDecider
is a specialInputConsumableDecider
. The input is considered to be consumable:- for hybrid input: when partial producer partitions are finished.
- for blocking input: when all producer partitions are finished.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PartialFinishedInputConsumableDecider.Factory
Factory forPartialFinishedInputConsumableDecider
.
-
Field Summary
Fields Modifier and Type Field Description static int
NUM_FINISHED_PARTITIONS_AS_CONSUMABLE
-
Constructor Summary
Constructors Constructor Description PartialFinishedInputConsumableDecider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
NUM_FINISHED_PARTITIONS_AS_CONSUMABLE
public static final int NUM_FINISHED_PARTITIONS_AS_CONSUMABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isInputConsumable
public boolean isInputConsumable(SchedulingExecutionVertex executionVertex, Set<ExecutionVertexID> verticesToDeploy, Map<ConsumedPartitionGroup,Boolean> consumableStatusCache)
Description copied from interface:InputConsumableDecider
Determining whether the input of an execution vertex is consumable.- Specified by:
isInputConsumable
in interfaceInputConsumableDecider
- Parameters:
executionVertex
- 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 forConsumedPartitionGroup
consumable status. This is to avoid repetitive computation.
-
isConsumableBasedOnFinishedProducers
public boolean isConsumableBasedOnFinishedProducers(ConsumedPartitionGroup consumedPartitionGroup)
Description copied from interface:InputConsumableDecider
Determining whether the consumed partition group is consumable based on finished producers.- Specified by:
isConsumableBasedOnFinishedProducers
in interfaceInputConsumableDecider
- Parameters:
consumedPartitionGroup
- to be determined whether it is consumable.
-
-