org.apache.pig.newplan.logical.optimizer
Class AllSameRalationalNodesVisitor

java.lang.Object
  extended by org.apache.pig.newplan.PlanVisitor
      extended by org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
          extended by org.apache.pig.newplan.logical.optimizer.AllSameRalationalNodesVisitor

public abstract class AllSameRalationalNodesVisitor
extends LogicalRelationalNodesVisitor

A visitor that walks the logical plan and calls the same method on every type of node. Subclasses can extend this and implement the execute method, and this method will be called on every node in the graph.


Field Summary
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
AllSameRalationalNodesVisitor(OperatorPlan plan, PlanWalker walker)
           
 
Method Summary
protected abstract  void execute(LogicalRelationalOperator op)
          Method to call on every node in the logical plan.
 void visit(LOCogroup cg)
           
 void visit(LOCross cross)
           
 void visit(LODistinct distinct)
           
 void visit(LOFilter filter)
           
 void visit(LOForEach foreach)
           
 void visit(LOJoin join)
           
 void visit(LOLoad load)
           
 void visit(LOSort sort)
           
 void visit(LOSplit split)
           
 void visit(LOSplitOutput splitOutput)
           
 void visit(LOStore store)
           
 void visit(LOStream stream)
           
 void visit(LOUnion union)
           
 
Methods inherited from class org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
visit, visit, visit, visit
 
Methods inherited from class org.apache.pig.newplan.PlanVisitor
getPlan, popWalker, pushWalker, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllSameRalationalNodesVisitor

public AllSameRalationalNodesVisitor(OperatorPlan plan,
                                     PlanWalker walker)
                              throws FrontendException
Parameters:
plan - OperatorPlan to visit
walker - Walker to use to visit the plan
Throws:
FrontendException
Method Detail

execute

protected abstract void execute(LogicalRelationalOperator op)
                         throws FrontendException
Method to call on every node in the logical plan.

Parameters:
op - Node that is currently being visited.
Throws:
FrontendException

visit

public void visit(LOFilter filter)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOJoin join)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOCogroup cg)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOLoad load)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOStore store)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOForEach foreach)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSplit split)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSplitOutput splitOutput)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOUnion union)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOSort sort)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LODistinct distinct)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOCross cross)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException

visit

public void visit(LOStream stream)
           throws FrontendException
Overrides:
visit in class LogicalRelationalNodesVisitor
Throws:
FrontendException


Copyright © ${year} The Apache Software Foundation