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 encounteredSemanticException
public void startWalking(Collection<Node> startNodes, HashMap<Node,Object> nodeOutput) throws SemanticException
startWalking
in interface GraphWalker
startNodes
- 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.SemanticException
public void walk(Node nd) throws SemanticException
nd
- current operator in the graphSemanticException
Copyright © 2017 The Apache Software Foundation. All rights reserved.