cascading.flow.planner
Class FlowStepGraph<Config>
java.lang.Object
org.jgrapht.graph.AbstractGraph<V,E>
org.jgrapht.graph.AbstractBaseGraph<V,E>
org.jgrapht.graph.SimpleDirectedGraph<FlowStep<Config>,java.lang.Integer>
cascading.flow.planner.FlowStepGraph<Config>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, org.jgrapht.DirectedGraph<FlowStep<Config>,java.lang.Integer>, org.jgrapht.Graph<FlowStep<Config>,java.lang.Integer>
- Direct Known Subclasses:
- HadoopStepGraph, LocalStepGraph
public abstract class FlowStepGraph<Config>
- extends org.jgrapht.graph.SimpleDirectedGraph<FlowStep<Config>,java.lang.Integer>
Class StepGraph is an internal representation of FlowStep
instances.
- See Also:
- Serialized Form
Constructor Summary |
FlowStepGraph()
Constructor StepGraph creates a new StepGraph instance. |
FlowStepGraph(java.lang.String flowName,
ElementGraph elementGraph)
Constructor StepGraph creates a new StepGraph instance. |
Methods inherited from class org.jgrapht.graph.AbstractBaseGraph |
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSetFactory, setEdgeWeight, vertexSet |
Methods inherited from class org.jgrapht.graph.AbstractGraph |
assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jgrapht.DirectedGraph |
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf |
Methods inherited from interface org.jgrapht.Graph |
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet |
FlowStepGraph
public FlowStepGraph()
- Constructor StepGraph creates a new StepGraph instance.
FlowStepGraph
public FlowStepGraph(java.lang.String flowName,
ElementGraph elementGraph)
- Constructor StepGraph creates a new StepGraph instance.
- Parameters:
elementGraph
- of type ElementGraph
getCreateFlowStep
protected FlowStep<Config> getCreateFlowStep(java.util.Map<java.lang.String,FlowStep<Config>> steps,
java.lang.String sinkName,
int numJobs)
- Method getCreateFlowStep ...
- Parameters:
steps
- of type MapsinkName
- of type StringnumJobs
- of type int
- Returns:
- FlowStep
createFlowStep
protected abstract FlowStep<Config> createFlowStep(java.lang.String stepName,
int stepNum)
makeStepGraph
protected abstract void makeStepGraph(java.lang.String flowName,
ElementGraph elementGraph)
pathContainsTap
protected boolean pathContainsTap(org.jgrapht.GraphPath<FlowElement,Scope> path)
getTopologicalIterator
public org.jgrapht.traverse.TopologicalOrderIterator<FlowStep<Config>,java.lang.Integer> getTopologicalIterator()
writeDOT
public void writeDOT(java.lang.String filename)
- Method writeDOT writes this element graph to a DOT file for easy visualization and debugging.
- Parameters:
filename
- of type String
printElementGraph
protected void printElementGraph(java.lang.String filename)
Copyright © 2007-2011 Concurrent, Inc. All Rights Reserved.