org.apache.pig.newplan.logical.optimizer
Class AllExpressionVisitor
java.lang.Object
org.apache.pig.newplan.PlanVisitor
org.apache.pig.newplan.logical.relational.LogicalRelationalNodesVisitor
org.apache.pig.newplan.logical.optimizer.AllExpressionVisitor
- Direct Known Subclasses:
- CastLineageSetter, ColumnAliasConversionVisitor, MapKeysPruneHelper.FullMapCollector, MapKeysPruneHelper.MapMarker, ProjectionPatcher.ProjectionFinder, ProjStarInUdfExpander, ScalarVisitor
public abstract class AllExpressionVisitor
- extends LogicalRelationalNodesVisitor
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 |
currentOp
protected LogicalRelationalOperator currentOp
AllExpressionVisitor
public AllExpressionVisitor(OperatorPlan plan,
PlanWalker walker)
throws FrontendException
- Parameters:
plan
- LogicalPlan to visitwalker
- Walker to use to visit the plan.
- Throws:
FrontendException
getVisitor
protected abstract LogicalExpressionVisitor getVisitor(LogicalExpressionPlan expr)
throws FrontendException
- 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
- Throws:
FrontendException
visit
public void visit(LOFilter filter)
throws FrontendException
- Overrides:
visit
in class LogicalRelationalNodesVisitor
- Throws:
FrontendException
visit
public void visit(LOLimit limit)
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(LOCube cu)
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(LOForEach foreach)
throws FrontendException
- Overrides:
visit
in class LogicalRelationalNodesVisitor
- Throws:
FrontendException
visit
public void visit(LOGenerate gen)
throws FrontendException
- Overrides:
visit
in class LogicalRelationalNodesVisitor
- Throws:
FrontendException
visit
public void visit(LOInnerLoad load)
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(LORank rank)
throws FrontendException
- Overrides:
visit
in class LogicalRelationalNodesVisitor
- Throws:
FrontendException
visit
public void visit(LOSort sort)
throws FrontendException
- Overrides:
visit
in class LogicalRelationalNodesVisitor
- Throws:
FrontendException
Copyright © 2007-2012 The Apache Software Foundation