org.apache.pig.impl.logicalLayer
Class ScalarFinder

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.ScalarFinder

public class ScalarFinder
extends LOVisitor


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
ScalarFinder(LogicalPlan plan)
           
 
Method Summary
 Map<LOUserFunc,Pair<LogicalPlan,LogicalOperator>> getScalarMap()
           
protected  void visit(LOCogroup op)
           
protected  void visit(LOFilter op)
           
protected  void visit(LOForEach op)
           
protected  void visit(LOJoin op)
           
protected  void visit(LOSplitOutput op)
           
protected  void visit(LOUserFunc scalar)
          Iterate over each expression that is part of the function argument list
 
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
 
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

ScalarFinder

public ScalarFinder(LogicalPlan plan)
Parameters:
plan - logical plan to query the presence of Scalars
Method Detail

visit

protected void visit(LOUserFunc scalar)
              throws VisitorException
Description copied from class: LOVisitor
Iterate over each expression that is part of the function argument list

Overrides:
visit in class LOVisitor
Parameters:
scalar - the user defined function
Throws:
VisitorException

visit

protected void visit(LOFilter op)
              throws VisitorException
Overrides:
visit in class LOVisitor
Parameters:
op - the logical filter operator that has to be visited
Throws:
VisitorException

visit

protected void visit(LOForEach op)
              throws VisitorException
Overrides:
visit in class LOVisitor
Parameters:
op - the logical foreach operator that has to be visited
Throws:
VisitorException

visit

protected void visit(LOSplitOutput op)
              throws VisitorException
Overrides:
visit in class LOVisitor
Throws:
VisitorException

visit

protected void visit(LOCogroup op)
              throws VisitorException
Overrides:
visit in class LOVisitor
Parameters:
op - the logical cogroup operator that has to be visited
Throws:
VisitorException

visit

protected void visit(LOJoin op)
              throws VisitorException
Overrides:
visit in class LOVisitor
Parameters:
op - the logical join operator that has to be visited
Throws:
VisitorException

getScalarMap

public Map<LOUserFunc,Pair<LogicalPlan,LogicalOperator>> getScalarMap()
Returns:
Map of scalar operators found in the plan


Copyright © ${year} The Apache Software Foundation