|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.flow.ElementGraph
public class ElementGraph
Class ElementGraph represents the executable FlowElement graph.
| Nested Class Summary | |
|---|---|
static class |
ElementGraph.Extent
|
| Constructor Summary | |
|---|---|
ElementGraph(Pipe[] pipes,
Map<String,Tap> sources,
Map<String,Tap> sinks,
Map<String,Tap> traps,
AssertionLevel assertionLevel)
Constructor ElementGraph creates a new ElementGraph instance. |
|
| Method Summary | ||
|---|---|---|
ElementGraph |
copyElementGraph()
Method copyGraph returns a partial copy of the current ElementGraph. |
|
List<Every> |
findAllEveries()
Method findAllEveries ... |
|
List<Group> |
findAllGroups()
Method findAllGroups ... |
|
List<Group> |
findAllMergeJoinGroups()
Finds all groups that merge/join streams. |
|
|
findAllOfType(int minInDegree,
Class<P> type,
List<P> results)
Method findAllOfType ... |
|
List< |
getAllShortestPathsBetween(FlowElement from,
FlowElement to)
Method getAllShortestPathsBetween ... |
|
List< |
getAllShortestPathsBetweenExtents()
Method getAllShortestPathsBetweenExtents returns the allShortestPathsBetweenExtents of this ElementGraph object. |
|
List< |
getAllShortestPathsFrom(FlowElement flowElement)
Method getAllShortestPathsFrom ... |
|
List< |
getAllShortestPathsTo(FlowElement flowElement)
Method getAllShortestPathsTo ... |
|
|
getDepthFirstIterator()
Method getDepthFirstIterator returns the depthFirstIterator of this ElementGraph object. |
|
|
getTopologicalIterator()
Method getTopologicalIterator returns the topologicalIterator of this ElementGraph object. |
|
void |
insertFlowElementAfter(FlowElement previousElement,
FlowElement flowElement)
|
|
|
makeTapGraph()
Method makeTapGraph returns a directed graph of all taps in the current element graph. |
|
protected void |
printElementGraph(String filename,
|
|
void |
removeUnnecessaryPipes()
Method removeEmptyPipes performs a depth first traversal and removes instance of Pipe or SubAssembly. |
|
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 vizualization and debugging. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElementGraph(Pipe[] pipes,
Map<String,Tap> sources,
Map<String,Tap> sinks,
Map<String,Tap> traps,
AssertionLevel assertionLevel)
pipes - of type Pipe[]sources - of type Mapsinks - of type MapassertionLevel - of type AssertionLevel| Method Detail |
|---|
public ElementGraph copyElementGraph()
publicgetTopologicalIterator()
public List<> getAllShortestPathsFrom(FlowElement flowElement)
flowElement - of type FlowElement
public List<> getAllShortestPathsTo(FlowElement flowElement)
flowElement - of type FlowElement
public List<> getAllShortestPathsBetweenExtents()
public List<> getAllShortestPathsBetween(FlowElement from, FlowElement to)
from - of type FlowElementto - of type FlowElement
publicgetDepthFirstIterator()
public void writeDOT(String filename)
filename - of type String
protected void printElementGraph(String filename,
graph)
public void removeUnnecessaryPipes()
Pipe or SubAssembly.
public void resolveFields()
public List<Group> findAllMergeJoinGroups()
public List<Group> findAllGroups()
public List<Every> findAllEveries()
public <P> List<P> findAllOfType(int minInDegree,
Class<P> type,
List<P> results)
minInDegree - of type inttype - of type Classresults - of type List
public void insertFlowElementAfter(FlowElement previousElement,
FlowElement flowElement)
publicmakeTapGraph()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||