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, walk
public 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 GraphWalker
startWalking
in class DefaultGraphWalker
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
Copyright © 2021 The Apache Software Foundation. All rights reserved.