org.apache.pig.impl.logicalLayer
Class ProjectFixerUpper
java.lang.Object
org.apache.pig.impl.plan.PlanVisitor<LogicalOperator,LogicalPlan>
org.apache.pig.impl.logicalLayer.LOVisitor
org.apache.pig.impl.logicalLayer.ProjectFixerUpper
public class ProjectFixerUpper
- extends LOVisitor
A class to visit all the projects and change them to attach to a new
node. This class overrides all of the relational operators visit
methods because it does not want to visit contained plans.
Methods inherited from class org.apache.pig.impl.logicalLayer.LOVisitor |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
ProjectFixerUpper
public ProjectFixerUpper(LogicalPlan plan,
LogicalOperator oldNode,
int oldNodeIndex,
LogicalOperator newNode,
boolean useOldNode,
LogicalOperator containingNode)
throws VisitorException
- Throws:
VisitorException
ProjectFixerUpper
public ProjectFixerUpper(LogicalPlan plan,
LogicalOperator oldNode,
LogicalOperator newNode,
Map<Integer,Integer> projectionMapping)
throws VisitorException
- Throws:
VisitorException
visit
protected void visit(LOCogroup cg)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
cg
- the logical cogroup operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOSort s)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
s
- the logical sort operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOFilter f)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
f
- the logical filter operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOSplit s)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
s
- the logical split operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOSplitOutput s)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOForEach f)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
f
- the logical foreach operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOProject p)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © ${year} The Apache Software Foundation