org.apache.pig.impl.logicalLayer
Class ColumnPruner
java.lang.Object
org.apache.pig.impl.plan.PlanVisitor<LogicalOperator,LogicalPlan>
org.apache.pig.impl.logicalLayer.LOVisitor
org.apache.pig.impl.logicalLayer.ColumnPruner
public class ColumnPruner
- extends LOVisitor
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColumnPruner
public ColumnPruner(LogicalPlan plan)
addPruneMap
public void addPruneMap(LogicalOperator op,
List<Pair<Integer,Integer>> prunedColumns)
isEmpty
public boolean isEmpty()
prune
protected void prune(RelationalOperator lOp)
throws VisitorException
- Throws:
VisitorException
visit
protected void visit(LOCogroup cogroup)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
cogroup
- the logical cogroup operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOCross cross)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LODistinct distinct)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOFilter filter)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
filter
- the logical filter operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOForEach foreach)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
foreach
- the logical foreach operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOJoin join)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
join
- the logical join operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOLimit limit)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOSort sort)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
sort
- the logical sort operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOSplit split)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Parameters:
split
- the logical split operator that has to be visited
- Throws:
VisitorException
visit
protected void visit(LOSplitOutput splitoutput)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOStore store)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOStream stream)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOUnion union)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
visit
protected void visit(LOLoad lOp)
throws VisitorException
- Overrides:
visit
in class LOVisitor
- Throws:
VisitorException
Copyright © ${year} The Apache Software Foundation