Class PartialFinishedInputConsumableDecider
java.lang.Object
org.apache.flink.runtime.scheduler.strategy.PartialFinishedInputConsumableDecider
- All Implemented Interfaces:
InputConsumableDecider
PartialFinishedInputConsumableDecider is a special InputConsumableDecider. 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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisConsumableBasedOnFinishedProducers(ConsumedPartitionGroup consumedPartitionGroup) Determining whether the consumed partition group is consumable based on finished producers.booleanisInputConsumable(SchedulingExecutionVertex executionVertex, Set<ExecutionVertexID> verticesToDeploy, Map<ConsumedPartitionGroup, Boolean> consumableStatusCache) Determining whether the input of an execution vertex is consumable.
-
Field Details
-
NUM_FINISHED_PARTITIONS_AS_CONSUMABLE
public static final int NUM_FINISHED_PARTITIONS_AS_CONSUMABLE- See Also:
-
-
Constructor Details
-
PartialFinishedInputConsumableDecider
public PartialFinishedInputConsumableDecider()
-
-
Method Details
-
isInputConsumable
public boolean isInputConsumable(SchedulingExecutionVertex executionVertex, Set<ExecutionVertexID> verticesToDeploy, Map<ConsumedPartitionGroup, Boolean> consumableStatusCache) Description copied from interface:InputConsumableDeciderDetermining whether the input of an execution vertex is consumable.- Specified by:
isInputConsumablein 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 forConsumedPartitionGroupconsumable status. This is to avoid repetitive computation.
-
isConsumableBasedOnFinishedProducers
Description copied from interface:InputConsumableDeciderDetermining whether the consumed partition group is consumable based on finished producers.- Specified by:
isConsumableBasedOnFinishedProducersin interfaceInputConsumableDecider- Parameters:
consumedPartitionGroup- to be determined whether it is consumable.
-