org.apache.pig.experimental.logical.optimizer
Class AllExpressionVisitor

java.lang.Object
  extended by org.apache.pig.experimental.plan.PlanVisitor
      extended by org.apache.pig.experimental.logical.relational.LogicalPlanVisitor
          extended by org.apache.pig.experimental.logical.optimizer.AllExpressionVisitor
Direct Known Subclasses:
MapKeysPruneHelper.MapMarker, PlanPrinter, UidStamper

public abstract class AllExpressionVisitor
extends LogicalPlanVisitor

A visitor that walks a logical plan and then applies a given LogicalExpressionVisitor to all expressions it encounters.


Field Summary
protected  LogicalRelationalOperator currentOp
           
protected  LogicalExpressionVisitor exprVisitor
           
 
Fields inherited from class org.apache.pig.experimental.plan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
AllExpressionVisitor(OperatorPlan plan, PlanWalker walker)
           
 
Method Summary
protected abstract  LogicalExpressionVisitor getVisitor(LogicalExpressionPlan expr)
          Get a new instance of the expression visitor to apply to a given expression.
 void visitLOCogroup(LOCogroup cg)
           
 void visitLOFilter(LOFilter filter)
           
 void visitLOForEach(LOForEach foreach)
           
 void visitLOGenerate(LOGenerate gen)
           
 void visitLOInnerLoad(LOInnerLoad load)
           
 void visitLOJoin(LOJoin join)
           
 void visitLOSplitOutput(LOSplitOutput splitOutput)
           
 
Methods inherited from class org.apache.pig.experimental.logical.relational.LogicalPlanVisitor
visitLOLoad, visitLOSplit, visitLOStore, visitLOUnion
 
Methods inherited from class org.apache.pig.experimental.plan.PlanVisitor
getPlan, popWalker, pushWalker, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exprVisitor

protected LogicalExpressionVisitor exprVisitor

currentOp

protected LogicalRelationalOperator currentOp
Constructor Detail

AllExpressionVisitor

public AllExpressionVisitor(OperatorPlan plan,
                            PlanWalker walker)
Parameters:
plan - LogicalPlan to visit
walker - Walker to use to visit the plan.
Method Detail

getVisitor

protected abstract LogicalExpressionVisitor getVisitor(LogicalExpressionPlan expr)
Get a new instance of the expression visitor to apply to a given expression.

Parameters:
expr - LogicalExpressionPlan that will be visited
Returns:
a new LogicalExpressionVisitor for that expression

visitLOFilter

public void visitLOFilter(LOFilter filter)
                   throws IOException
Overrides:
visitLOFilter in class LogicalPlanVisitor
Throws:
IOException

visitLOJoin

public void visitLOJoin(LOJoin join)
                 throws IOException
Overrides:
visitLOJoin in class LogicalPlanVisitor
Throws:
IOException

visitLOCogroup

public void visitLOCogroup(LOCogroup cg)
                    throws IOException
Overrides:
visitLOCogroup in class LogicalPlanVisitor
Throws:
IOException

visitLOForEach

public void visitLOForEach(LOForEach foreach)
                    throws IOException
Overrides:
visitLOForEach in class LogicalPlanVisitor
Throws:
IOException

visitLOGenerate

public void visitLOGenerate(LOGenerate gen)
                     throws IOException
Overrides:
visitLOGenerate in class LogicalPlanVisitor
Throws:
IOException

visitLOInnerLoad

public void visitLOInnerLoad(LOInnerLoad load)
                      throws IOException
Overrides:
visitLOInnerLoad in class LogicalPlanVisitor
Throws:
IOException

visitLOSplitOutput

public void visitLOSplitOutput(LOSplitOutput splitOutput)
                        throws IOException
Overrides:
visitLOSplitOutput in class LogicalPlanVisitor
Throws:
IOException


Copyright © ${year} The Apache Software Foundation