org.apache.pig.impl.logicalLayer
Class UDFFinder

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

public class UDFFinder
extends LOVisitor

A visitor to track the UDFs in a plan.


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
UDFFinder(LogicalPlan plan)
           
 
Method Summary
 boolean foundAnyUDF()
           
 List<FuncSpec> getUDFList()
           
 Set<FuncSpec> getUDFSet()
           
protected  void visit(LOUserFunc udf)
          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, 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

UDFFinder

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

visit

protected void visit(LOUserFunc udf)
              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:
udf - the user defined function
Throws:
VisitorException

getUDFList

public List<FuncSpec> getUDFList()
Returns:
list of function specifications found in the plan

getUDFSet

public Set<FuncSpec> getUDFSet()
Returns:
set of function specifications found in the plan

foundAnyUDF

public boolean foundAnyUDF()
Returns:
true if the plan had any UDFs; false otherwise


Copyright © ${year} The Apache Software Foundation