org.apache.pig.impl.logicalLayer
Class ScalarFinder
java.lang.Object
org.apache.pig.impl.plan.PlanVisitor<LogicalOperator,LogicalPlan>
org.apache.pig.impl.logicalLayer.LOVisitor
org.apache.pig.impl.logicalLayer.ScalarFinder
public class ScalarFinder
- 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, 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 |
ScalarFinder
public ScalarFinder(LogicalPlan plan)
- Parameters:
plan
- logical plan to query the presence of Scalars
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