org.apache.pig.experimental.logical.optimizer
Class AllExpressionVisitor
java.lang.Object
org.apache.pig.experimental.plan.PlanVisitor
org.apache.pig.experimental.logical.relational.LogicalPlanVisitor
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exprVisitor
protected LogicalExpressionVisitor exprVisitor
currentOp
protected LogicalRelationalOperator currentOp
AllExpressionVisitor
public AllExpressionVisitor(OperatorPlan plan,
PlanWalker walker)
- Parameters:
plan
- LogicalPlan to visitwalker
- Walker to use to visit the plan.
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