org.apache.hadoop.hive.ql.parse
Class GenTezWorkWalker
java.lang.Object
org.apache.hadoop.hive.ql.lib.DefaultGraphWalker
org.apache.hadoop.hive.ql.parse.GenTezWorkWalker
- All Implemented Interfaces:
- GraphWalker
public class GenTezWorkWalker
- extends DefaultGraphWalker
Walks the operator tree in DFS fashion.
GenTezWorkWalker
public GenTezWorkWalker(Dispatcher disp,
GenTezProcContext ctx)
- constructor of the walker - the dispatcher is passed.
- Parameters:
disp
- the dispatcher to be called for each node visitedctx
- the context where we'll set the current root operator
startWalking
public void startWalking(Collection<Node> startNodes,
HashMap<Node,Object> nodeOutput)
throws SemanticException
- starting point for walking.
- Specified by:
startWalking
in interface GraphWalker
- Overrides:
startWalking
in class DefaultGraphWalker
- Parameters:
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.
- Throws:
SemanticException
walk
public void walk(Node nd)
throws SemanticException
- Walk the given operator.
- Overrides:
walk
in class DefaultGraphWalker
- Parameters:
nd
- operator being walked
- Throws:
SemanticException
Copyright © 2014 The Apache Software Foundation. All rights reserved.