Class DefaultLogicalPipelinedRegion
- java.lang.Object
-
- org.apache.flink.runtime.jobgraph.topology.DefaultLogicalPipelinedRegion
-
- All Implemented Interfaces:
LogicalPipelinedRegion,PipelinedRegion<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>
public class DefaultLogicalPipelinedRegion extends Object implements LogicalPipelinedRegion
Set ofLogicalVertexthat are connected through pipelinedLogicalResult.
-
-
Constructor Summary
Constructors Constructor Description DefaultLogicalPipelinedRegion(Set<? extends LogicalVertex> logicalVertices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(JobVertexID vertexId)Returns whether the vertex is in this pipelined region or not.LogicalVertexgetVertex(JobVertexID vertexId)Returns the vertex with the specified vertex id.Iterable<? extends LogicalVertex>getVertices()Returns vertices that are in this pipelined region.StringtoString()
-
-
-
Constructor Detail
-
DefaultLogicalPipelinedRegion
public DefaultLogicalPipelinedRegion(Set<? extends LogicalVertex> logicalVertices)
-
-
Method Detail
-
getVertices
public Iterable<? extends LogicalVertex> getVertices()
Description copied from interface:PipelinedRegionReturns vertices that are in this pipelined region.- Specified by:
getVerticesin interfacePipelinedRegion<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>- Returns:
- Iterable over all vertices in this pipelined region
-
getVertex
public LogicalVertex getVertex(JobVertexID vertexId)
Description copied from interface:PipelinedRegionReturns the vertex with the specified vertex id.- Specified by:
getVertexin interfacePipelinedRegion<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>- Parameters:
vertexId- the vertex id used to look up the vertex- Returns:
- the vertex with the specified id
-
contains
public boolean contains(JobVertexID vertexId)
Description copied from interface:PipelinedRegionReturns whether the vertex is in this pipelined region or not.- Specified by:
containsin interfacePipelinedRegion<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>- Parameters:
vertexId- the vertex id used to look up- Returns:
- the vertex is in this pipelined region or not
-
-