Class NonAdaptiveExecutionPlanSchedulingContext
java.lang.Object
org.apache.flink.runtime.scheduler.adaptivebatch.NonAdaptiveExecutionPlanSchedulingContext
- All Implemented Interfaces:
ExecutionPlanSchedulingContext
public final class NonAdaptiveExecutionPlanSchedulingContext
extends Object
implements ExecutionPlanSchedulingContext
The
NonAdaptiveExecutionPlanSchedulingContext is a final class that implements a
scheduling context for execution plans that do not require adaptive changes.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintgetConsumersMaxParallelism(Function<JobVertexID, Integer> executionJobVertexMaxParallelismRetriever, IntermediateDataSet intermediateDataSet) Retrieves the maximum parallelism of consumers connected to the specified intermediate data set.intgetConsumersParallelism(Function<JobVertexID, Integer> executionJobVertexParallelismRetriever, IntermediateDataSet intermediateDataSet) Retrieves the parallelism of consumers connected to the specified intermediate data set.intRetrieves the count of pending operators waiting to be transferred to job vertices.Retrieves the JSON representation of the stream graph for the original job.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getConsumersParallelism
public int getConsumersParallelism(Function<JobVertexID, Integer> executionJobVertexParallelismRetriever, IntermediateDataSet intermediateDataSet) Description copied from interface:ExecutionPlanSchedulingContextRetrieves the parallelism of consumers connected to the specified intermediate data set.- Specified by:
getConsumersParallelismin interfaceExecutionPlanSchedulingContext- Parameters:
executionJobVertexParallelismRetriever- A function that retrieves the parallelism of a job vertex.intermediateDataSet- The intermediate data set whose consumer parallelism is queried.- Returns:
- The parallelism of the consumers.
-
getConsumersMaxParallelism
public int getConsumersMaxParallelism(Function<JobVertexID, Integer> executionJobVertexMaxParallelismRetriever, IntermediateDataSet intermediateDataSet) Description copied from interface:ExecutionPlanSchedulingContextRetrieves the maximum parallelism of consumers connected to the specified intermediate data set.- Specified by:
getConsumersMaxParallelismin interfaceExecutionPlanSchedulingContext- Parameters:
executionJobVertexMaxParallelismRetriever- A function that retrieves the maximum parallelism of a job vertex.intermediateDataSet- The intermediate data set whose consumer maximum parallelism is queried.- Returns:
- The maximum parallelism of the consumers.
-
getPendingOperatorCount
public int getPendingOperatorCount()Description copied from interface:ExecutionPlanSchedulingContextRetrieves the count of pending operators waiting to be transferred to job vertices.- Specified by:
getPendingOperatorCountin interfaceExecutionPlanSchedulingContext- Returns:
- the number of pending operators.
-
getStreamGraphJson
Description copied from interface:ExecutionPlanSchedulingContextRetrieves the JSON representation of the stream graph for the original job.- Specified by:
getStreamGraphJsonin interfaceExecutionPlanSchedulingContext- Returns:
- the JSON representation of the stream graph, or null if the stream graph is not available.
-