public class LevelOrderWalker extends DefaultGraphWalker
dispatcher, opQueue, opStack, retMap, toWalk| Constructor and Description |
|---|
LevelOrderWalker(Dispatcher disp)
Constructor with keeping all the ancestors in the operator stack during dispatching.
|
LevelOrderWalker(Dispatcher disp,
int numLevels)
Constructor with specified number of ancestor levels to keep in the operator
stack during dispatching.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setNodeTypes(Class<? extends Node>... nodeTypes) |
void |
startWalking(Collection<Node> startNodes,
HashMap<Node,Object> nodeOutput)
starting point for walking.
|
dispatch, dispatchAndReturn, getDispatchedList, walkpublic LevelOrderWalker(Dispatcher disp)
disp - Dispatcher to call for each op encounteredpublic LevelOrderWalker(Dispatcher disp, int numLevels)
disp - Dispatcher to call for each op encounterednumLevels - Number of ancestor levelspublic void startWalking(Collection<Node> startNodes, HashMap<Node,Object> nodeOutput) throws SemanticException
startWalking in interface GraphWalkerstartWalking in class DefaultGraphWalkerstartNodes - 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.SemanticExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.