|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgrapht.graph.AbstractGraph<V,E>
org.jgrapht.graph.AbstractBaseGraph<V,E>
org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope>
cascading.flow.planner.ElementGraph
public class ElementGraph
Class ElementGraph represents the executable FlowElement graph.
Nested Class Summary | |
---|---|
static class |
ElementGraph.Extent
|
Field Summary | |
---|---|
static ElementGraph.Extent |
head
Field head |
static ElementGraph.Extent |
tail
Field tail |
Constructor Summary | |
---|---|
ElementGraph(ElementGraph elementGraph)
|
|
ElementGraph(PlatformInfo platformInfo,
Pipe[] pipes,
Map<String,Tap> sources,
Map<String,Tap> sinks,
Map<String,Tap> traps,
Map<String,Tap> checkpoints,
boolean requireUniqueCheckpoints,
PlannerLevel... plannerLevels)
Constructor ElementGraph creates a new ElementGraph instance. |
Method Summary | ||
---|---|---|
ElementGraph |
copyElementGraph()
Method copyGraph returns a partial copy of the current ElementGraph. |
|
List<CoGroup> |
findAllCoGroups()
|
|
List<Each> |
findAllEachSplits()
Method findAllSplits ... |
|
List<Every> |
findAllEveries()
Method findAllEveries ... |
|
List<Group> |
findAllGroups()
Method findAllGroups ... |
|
List<Group> |
findAllMergeJoinGroups()
Finds all groups that merge/join streams. |
|
List<Splice> |
findAllMergeJoinSplices()
Finds all splices that merge/join streams. |
|
|
findAllOfType(int minInDegree,
int minOutDegree,
Class<P> type,
List<P> results)
Method findAllOfType ... |
|
List<Pipe> |
findAllPipeSplits()
|
|
List<Tap> |
findAllTaps()
Method findAllTaps ... |
|
Set<FlowElement> |
getAllChildrenNotExactlyType(FlowElement flowElement,
Class<? extends FlowElement> type)
|
|
|
getAllChildrenOfType(FlowElement flowElement,
Class<A> type)
|
|
List<org.jgrapht.GraphPath<FlowElement,Scope>> |
getAllShortestPathsBetweenExtents()
Method getAllShortestPathsBetweenExtents returns the allShortestPathsBetweenExtents of this ElementGraph object. |
|
List<org.jgrapht.GraphPath<FlowElement,Scope>> |
getAllShortestPathsFrom(FlowElement flowElement)
Method getAllShortestPathsFrom ... |
|
List<org.jgrapht.GraphPath<FlowElement,Scope>> |
getAllShortestPathsTo(FlowElement flowElement)
Method getAllShortestPathsTo ... |
|
List<FlowElement> |
getAllSuccessors(FlowElement element)
|
|
Map<String,Tap> |
getCheckpointsMap()
|
|
org.jgrapht.traverse.DepthFirstIterator<FlowElement,Scope> |
getDepthFirstIterator()
Method getDepthFirstIterator returns the depthFirstIterator of this ElementGraph object. |
|
int |
getMaxNumPathsBetweenElementAndGroupingMergeJoin(FlowElement flowElement)
|
|
Map<String,Tap> |
getSinkMap()
|
|
Collection<Tap> |
getSinks()
|
|
Map<String,Tap> |
getSourceMap()
|
|
Collection<Tap> |
getSources()
|
|
org.jgrapht.traverse.TopologicalOrderIterator<FlowElement,Scope> |
getTopologicalIterator()
Method getTopologicalIterator returns the topologicalIterator of this ElementGraph object. |
|
Map<String,Tap> |
getTrapMap()
|
|
Collection<Tap> |
getTraps()
|
|
void |
insertFlowElementAfter(FlowElement previousElement,
FlowElement flowElement)
|
|
org.jgrapht.graph.SimpleDirectedGraph<Tap,Integer> |
makeTapGraph()
Method makeTapGraph returns a directed graph of all taps in the current element graph. |
|
protected void |
printElementGraph(String filename,
org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph)
|
|
void |
removeUnnecessaryPipes()
Method removeEmptyPipes performs a depth first traversal and removes instance of Pipe or SubAssembly . |
|
void |
replaceElementWith(FlowElement element,
FlowElement replacement)
|
|
void |
resolveFields()
Method resolveFields performs a breadth first traversal and resolves the tuple fields between each Pipe instance. |
|
void |
writeDOT(String filename)
Method writeDOT writes this element graph to a DOT file for easy visualization and debugging. |
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 |
Field Detail |
---|
public static final ElementGraph.Extent head
public static final ElementGraph.Extent tail
Constructor Detail |
---|
public ElementGraph(ElementGraph elementGraph)
public ElementGraph(PlatformInfo platformInfo, Pipe[] pipes, Map<String,Tap> sources, Map<String,Tap> sinks, Map<String,Tap> traps, Map<String,Tap> checkpoints, boolean requireUniqueCheckpoints, PlannerLevel... plannerLevels)
pipes
- of type Pipe[]sources
- of type Mapsinks
- of type MapMethod Detail |
---|
public Map<String,Tap> getSourceMap()
public Map<String,Tap> getSinkMap()
public Map<String,Tap> getTrapMap()
public Map<String,Tap> getCheckpointsMap()
public Collection<Tap> getSources()
public Collection<Tap> getSinks()
public Collection<Tap> getTraps()
public ElementGraph copyElementGraph()
public org.jgrapht.traverse.TopologicalOrderIterator<FlowElement,Scope> getTopologicalIterator()
public List<org.jgrapht.GraphPath<FlowElement,Scope>> getAllShortestPathsFrom(FlowElement flowElement)
flowElement
- of type FlowElement
public List<org.jgrapht.GraphPath<FlowElement,Scope>> getAllShortestPathsTo(FlowElement flowElement)
flowElement
- of type FlowElement
public List<org.jgrapht.GraphPath<FlowElement,Scope>> getAllShortestPathsBetweenExtents()
public org.jgrapht.traverse.DepthFirstIterator<FlowElement,Scope> getDepthFirstIterator()
public void writeDOT(String filename)
filename
- of type Stringprotected void printElementGraph(String filename, org.jgrapht.graph.SimpleDirectedGraph<FlowElement,Scope> graph)
public void removeUnnecessaryPipes()
Pipe
or SubAssembly
.
public void resolveFields()
public List<Group> findAllMergeJoinGroups()
public List<Splice> findAllMergeJoinSplices()
public List<CoGroup> findAllCoGroups()
public List<Group> findAllGroups()
public List<Every> findAllEveries()
public List<Tap> findAllTaps()
public List<Each> findAllEachSplits()
public List<Pipe> findAllPipeSplits()
public <P> List<P> findAllOfType(int minInDegree, int minOutDegree, Class<P> type, List<P> results)
minInDegree
- of type intminOutDegree
- type
- of type Classresults
- of type List@return List
public void insertFlowElementAfter(FlowElement previousElement, FlowElement flowElement)
public org.jgrapht.graph.SimpleDirectedGraph<Tap,Integer> makeTapGraph()
public int getMaxNumPathsBetweenElementAndGroupingMergeJoin(FlowElement flowElement)
public List<FlowElement> getAllSuccessors(FlowElement element)
public void replaceElementWith(FlowElement element, FlowElement replacement)
public <A extends FlowElement> Set<A> getAllChildrenOfType(FlowElement flowElement, Class<A> type)
public Set<FlowElement> getAllChildrenNotExactlyType(FlowElement flowElement, Class<? extends FlowElement> type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |