org.apache.hadoop.hive.ql.parse
Class GenTezWorkWalker

java.lang.Object
  extended by org.apache.hadoop.hive.ql.lib.DefaultGraphWalker
      extended by org.apache.hadoop.hive.ql.parse.GenTezWorkWalker
All Implemented Interfaces:
GraphWalker

public class GenTezWorkWalker
extends DefaultGraphWalker

Walks the operator tree in DFS fashion.


Constructor Summary
GenTezWorkWalker(Dispatcher disp, GenTezProcContext ctx)
          constructor of the walker - the dispatcher is passed.
 
Method Summary
 void startWalking(Collection<Node> startNodes, HashMap<Node,Object> nodeOutput)
          starting point for walking.
 void walk(Node nd)
          Walk the given operator.
 
Methods inherited from class org.apache.hadoop.hive.ql.lib.DefaultGraphWalker
dispatch, dispatchAndReturn, getDispatchedList, getToWalk
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 visited
ctx - the context where we'll set the current root operator
Method Detail

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 operators
nodeOutput - 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.