Class DefaultSchedulingPipelinedRegion
java.lang.Object
org.apache.flink.runtime.scheduler.adapter.DefaultSchedulingPipelinedRegion
- All Implemented Interfaces:
SchedulingPipelinedRegion,PipelinedRegion<ExecutionVertexID,IntermediateResultPartitionID, SchedulingExecutionVertex, SchedulingResultPartition>
Default implementation of
SchedulingPipelinedRegion.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSchedulingPipelinedRegion(Set<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex> defaultExecutionVertices, Function<IntermediateResultPartitionID, org.apache.flink.runtime.scheduler.adapter.DefaultResultPartition> resultPartitionRetriever) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(ExecutionVertexID vertexId) Returns whether the vertex is in this pipelined region or not.Get all distinct blockingConsumedPartitionGroups.Get all distinct releaseBySchedulerConsumedPartitionGroups.org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertexgetVertex(ExecutionVertexID vertexId) Returns the vertex with the specified vertex id.Iterable<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex>Returns vertices that are in this pipelined region.
-
Constructor Details
-
DefaultSchedulingPipelinedRegion
public DefaultSchedulingPipelinedRegion(Set<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex> defaultExecutionVertices, Function<IntermediateResultPartitionID, org.apache.flink.runtime.scheduler.adapter.DefaultResultPartition> resultPartitionRetriever)
-
-
Method Details
-
getVertices
Description copied from interface:PipelinedRegionReturns vertices that are in this pipelined region.- Specified by:
getVerticesin interfacePipelinedRegion<ExecutionVertexID,IntermediateResultPartitionID, SchedulingExecutionVertex, SchedulingResultPartition> - Returns:
- Iterable over all vertices in this pipelined region
-
getVertex
public org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex getVertex(ExecutionVertexID vertexId) Description copied from interface:PipelinedRegionReturns the vertex with the specified vertex id.- Specified by:
getVertexin interfacePipelinedRegion<ExecutionVertexID,IntermediateResultPartitionID, SchedulingExecutionVertex, SchedulingResultPartition> - Parameters:
vertexId- the vertex id used to look up the vertex- Returns:
- the vertex with the specified id
-
getAllNonPipelinedConsumedPartitionGroups
Description copied from interface:SchedulingPipelinedRegionGet all distinct blockingConsumedPartitionGroups.- Specified by:
getAllNonPipelinedConsumedPartitionGroupsin interfaceSchedulingPipelinedRegion- Returns:
- set of
ConsumedPartitionGroups
-
getAllReleaseBySchedulerConsumedPartitionGroups
Description copied from interface:SchedulingPipelinedRegionGet all distinct releaseBySchedulerConsumedPartitionGroups.- Specified by:
getAllReleaseBySchedulerConsumedPartitionGroupsin interfaceSchedulingPipelinedRegion- Returns:
- set of
ConsumedPartitionGroups
-
contains
Description copied from interface:PipelinedRegionReturns whether the vertex is in this pipelined region or not.- Specified by:
containsin interfacePipelinedRegion<ExecutionVertexID,IntermediateResultPartitionID, SchedulingExecutionVertex, SchedulingResultPartition> - Parameters:
vertexId- the vertex id used to look up- Returns:
- the vertex is in this pipelined region or not
-