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 ofLogicalVertex
that 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 boolean
contains(JobVertexID vertexId)
Returns whether the vertex is in this pipelined region or not.LogicalVertex
getVertex(JobVertexID vertexId)
Returns the vertex with the specified vertex id.Iterable<? extends LogicalVertex>
getVertices()
Returns vertices that are in this pipelined region.String
toString()
-
-
-
Constructor Detail
-
DefaultLogicalPipelinedRegion
public DefaultLogicalPipelinedRegion(Set<? extends LogicalVertex> logicalVertices)
-
-
Method Detail
-
getVertices
public Iterable<? extends LogicalVertex> getVertices()
Description copied from interface:PipelinedRegion
Returns vertices that are in this pipelined region.- Specified by:
getVertices
in interfacePipelinedRegion<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>
- Returns:
- Iterable over all vertices in this pipelined region
-
getVertex
public LogicalVertex getVertex(JobVertexID vertexId)
Description copied from interface:PipelinedRegion
Returns the vertex with the specified vertex id.- Specified by:
getVertex
in 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:PipelinedRegion
Returns whether the vertex is in this pipelined region or not.- Specified by:
contains
in interfacePipelinedRegion<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>
- Parameters:
vertexId
- the vertex id used to look up- Returns:
- the vertex is in this pipelined region or not
-
-