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

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
              extended by org.apache.pig.experimental.logical.optimizer.UidStamper

public class UidStamper
extends AllExpressionVisitor

A Visitor to stamp every part of every expression in a tree with a uid.


Field Summary
 
Fields inherited from class org.apache.pig.experimental.logical.optimizer.AllExpressionVisitor
currentOp, exprVisitor
 
Fields inherited from class org.apache.pig.experimental.plan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
UidStamper(OperatorPlan plan)
           
 
Method Summary
protected  LogicalExpressionVisitor getVisitor(LogicalExpressionPlan expr)
          Get a new instance of the expression visitor to apply to a given expression.
 void visitLOLoad(LOLoad load)
           
 
Methods inherited from class org.apache.pig.experimental.logical.optimizer.AllExpressionVisitor
visitLOCogroup, visitLOFilter, visitLOForEach, visitLOGenerate, visitLOInnerLoad, visitLOJoin, visitLOSplitOutput
 
Methods inherited from class org.apache.pig.experimental.logical.relational.LogicalPlanVisitor
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
 

Constructor Detail

UidStamper

public UidStamper(OperatorPlan plan)
Parameters:
plan - LogicalPlan that this stamper will act on.
Method Detail

getVisitor

protected LogicalExpressionVisitor getVisitor(LogicalExpressionPlan expr)
Description copied from class: AllExpressionVisitor
Get a new instance of the expression visitor to apply to a given expression.

Specified by:
getVisitor in class AllExpressionVisitor
Parameters:
expr - LogicalExpressionPlan that will be visited
Returns:
a new LogicalExpressionVisitor for that expression

visitLOLoad

public void visitLOLoad(LOLoad load)
                 throws IOException
Overrides:
visitLOLoad in class LogicalPlanVisitor
Throws:
IOException


Copyright © ${year} The Apache Software Foundation