org.apache.hadoop.hive.ql.lib
Class ForwardWalker

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

public class ForwardWalker
extends DefaultGraphWalker


Field Summary
 
Fields inherited from class org.apache.hadoop.hive.ql.lib.DefaultGraphWalker
dispatcher, opStack, retMap, toWalk
 
Constructor Summary
ForwardWalker(Dispatcher disp)
          Constructor.
 
Method Summary
protected  void addAllParents(Node nd)
           
protected  boolean allParentsDispatched(Node nd)
           
 void walk(Node nd)
          walk the current operator and its descendants.
 
Methods inherited from class org.apache.hadoop.hive.ql.lib.DefaultGraphWalker
dispatch, dispatchAndReturn, getDispatchedList, getToWalk, startWalking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardWalker

public ForwardWalker(Dispatcher disp)
Constructor.

Parameters:
disp - dispatcher to call for each op encountered
Method Detail

allParentsDispatched

protected boolean allParentsDispatched(Node nd)

addAllParents

protected void addAllParents(Node nd)

walk

public void walk(Node nd)
          throws SemanticException
walk the current operator and its descendants.

Overrides:
walk in class DefaultGraphWalker
Parameters:
nd - current operator in the graph
Throws:
SemanticException


Copyright © 2014 The Apache Software Foundation. All rights reserved.