public class TaskGraphWalker extends Object implements GraphWalker
| Modifier and Type | Class and Description |
|---|---|
class |
TaskGraphWalker.TaskGraphWalkerContext |
| Constructor and Description |
|---|
TaskGraphWalker(Dispatcher disp)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(Node nd,
Stack<Node> ndStack,
TaskGraphWalker.TaskGraphWalkerContext walkerCtx)
Dispatch the current operator.
|
Set<Node> |
getDispatchedList() |
List<Node> |
getToWalk() |
void |
startWalking(Collection<Node> startNodes,
HashMap<Node,Object> nodeOutput)
starting point for walking.
|
void |
walk(Node nd)
walk the current operator and its descendants.
|
public TaskGraphWalker(Dispatcher disp)
disp - dispatcher to call for each op encounteredpublic void dispatch(Node nd, Stack<Node> ndStack, TaskGraphWalker.TaskGraphWalkerContext walkerCtx) throws SemanticException
nd - node being walkedndStack - stack of nodes encounteredSemanticExceptionpublic void startWalking(Collection<Node> startNodes, HashMap<Node,Object> nodeOutput) throws SemanticException
startWalking in interface GraphWalkerstartNodes - list of starting operatorsnodeOutput - If this parameter is not null, the call to the function returns
the map from node to objects returned by the processors.SemanticExceptionpublic void walk(Node nd) throws SemanticException
nd - current operator in the graphSemanticExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.