Class DefaultLogicalTopology
- java.lang.Object
-
- org.apache.flink.runtime.jobgraph.topology.DefaultLogicalTopology
-
- All Implemented Interfaces:
LogicalTopology,BaseTopology<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>,Topology<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult,LogicalPipelinedRegion>
public class DefaultLogicalTopology extends Object implements LogicalTopology
Default implementation ofLogicalTopology. It is an adapter ofJobGraph.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultLogicalTopologyfromJobGraph(JobGraph jobGraph)static DefaultLogicalTopologyfromTopologicallySortedJobVertices(List<JobVertex> jobVertices)Iterable<DefaultLogicalPipelinedRegion>getAllPipelinedRegions()Returns all pipelined regions in this topology.DefaultLogicalVertexgetVertex(JobVertexID vertexId)Iterable<DefaultLogicalVertex>getVertices()Returns an iterable over all vertices, topologically sorted.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.runtime.topology.Topology
getPipelinedRegionOfVertex
-
-
-
-
Method Detail
-
fromJobGraph
public static DefaultLogicalTopology fromJobGraph(JobGraph jobGraph)
-
fromTopologicallySortedJobVertices
public static DefaultLogicalTopology fromTopologicallySortedJobVertices(List<JobVertex> jobVertices)
-
getVertices
public Iterable<DefaultLogicalVertex> getVertices()
Description copied from interface:BaseTopologyReturns an iterable over all vertices, topologically sorted.- Specified by:
getVerticesin interfaceBaseTopology<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult>- Returns:
- topologically sorted iterable over all vertices
-
getVertex
public DefaultLogicalVertex getVertex(JobVertexID vertexId)
-
getAllPipelinedRegions
public Iterable<DefaultLogicalPipelinedRegion> getAllPipelinedRegions()
Description copied from interface:TopologyReturns all pipelined regions in this topology.- Specified by:
getAllPipelinedRegionsin interfaceTopology<JobVertexID,IntermediateDataSetID,LogicalVertex,LogicalResult,LogicalPipelinedRegion>- Returns:
- Iterable over pipelined regions in this topology
-
-