Class DefaultSchedulingPipelinedRegion
- java.lang.Object
-
- org.apache.flink.runtime.scheduler.adapter.DefaultSchedulingPipelinedRegion
-
- All Implemented Interfaces:
SchedulingPipelinedRegion,PipelinedRegion<ExecutionVertexID,IntermediateResultPartitionID,SchedulingExecutionVertex,SchedulingResultPartition>
public class DefaultSchedulingPipelinedRegion extends Object implements SchedulingPipelinedRegion
Default implementation ofSchedulingPipelinedRegion.
-
-
Constructor Summary
Constructors Constructor Description DefaultSchedulingPipelinedRegion(Set<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex> defaultExecutionVertices, Function<IntermediateResultPartitionID,org.apache.flink.runtime.scheduler.adapter.DefaultResultPartition> resultPartitionRetriever)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(ExecutionVertexID vertexId)Returns whether the vertex is in this pipelined region or not.Iterable<ConsumedPartitionGroup>getAllNonPipelinedConsumedPartitionGroups()Get all distinct blockingConsumedPartitionGroups.Iterable<ConsumedPartitionGroup>getAllReleaseBySchedulerConsumedPartitionGroups()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>getVertices()Returns vertices that are in this pipelined region.
-
-
-
Constructor Detail
-
DefaultSchedulingPipelinedRegion
public DefaultSchedulingPipelinedRegion(Set<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex> defaultExecutionVertices, Function<IntermediateResultPartitionID,org.apache.flink.runtime.scheduler.adapter.DefaultResultPartition> resultPartitionRetriever)
-
-
Method Detail
-
getVertices
public Iterable<org.apache.flink.runtime.scheduler.adapter.DefaultExecutionVertex> 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
public Iterable<ConsumedPartitionGroup> getAllNonPipelinedConsumedPartitionGroups()
Description copied from interface:SchedulingPipelinedRegionGet all distinct blockingConsumedPartitionGroups.- Specified by:
getAllNonPipelinedConsumedPartitionGroupsin interfaceSchedulingPipelinedRegion- Returns:
- set of
ConsumedPartitionGroups
-
getAllReleaseBySchedulerConsumedPartitionGroups
public Iterable<ConsumedPartitionGroup> getAllReleaseBySchedulerConsumedPartitionGroups()
Description copied from interface:SchedulingPipelinedRegionGet all distinct releaseBySchedulerConsumedPartitionGroups.- Specified by:
getAllReleaseBySchedulerConsumedPartitionGroupsin interfaceSchedulingPipelinedRegion- Returns:
- set of
ConsumedPartitionGroups
-
contains
public boolean contains(ExecutionVertexID vertexId)
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
-
-