org.apache.pig.impl.logicalLayer
Class TopLevelProjectFinder

java.lang.Object
  extended by org.apache.pig.impl.plan.PlanVisitor<LogicalOperator,LogicalPlan>
      extended by org.apache.pig.impl.logicalLayer.LOVisitor
          extended by org.apache.pig.impl.logicalLayer.TopLevelProjectFinder

public class TopLevelProjectFinder
extends LOVisitor

A visitor to track the top-level projection operators in a plan. If there is a $1.$0 then only $1 is tracked


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
TopLevelProjectFinder(LogicalPlan plan)
           
 
Method Summary
 List<LOProject> getProjectList()
           
 Set<LOProject> getProjectSet()
           
 Set<LOProject> getProjectStarSet()
           
protected  void visit(LODistinct dt)
           
protected  void visit(LOFilter filter)
           
protected  void visit(LOForEach forEach)
           
protected  void visit(LOProject project)
           
protected  void visit(LOSort s)
           
 
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, visit, visit
 
Methods inherited from class org.apache.pig.impl.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

TopLevelProjectFinder

public TopLevelProjectFinder(LogicalPlan plan)
Method Detail

visit

protected void visit(LODistinct dt)
              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(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(LOProject project)
              throws VisitorException
Overrides:
visit in class LOVisitor
Throws:
VisitorException

getProjectList

public List<LOProject> getProjectList()

getProjectSet

public Set<LOProject> getProjectSet()

getProjectStarSet

public Set<LOProject> getProjectStarSet()


Copyright © ${year} The Apache Software Foundation