org.apache.pig.impl.logicalLayer
Class CastFinder

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

public class CastFinder
extends LOVisitor

A visitor to track the casts in a plan.


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
CastFinder(LogicalPlan plan)
           
 
Method Summary
 boolean foundAnyCast()
           
 List<LOCast> getCastList()
           
 Set<LOCast> getCastSet()
           
protected  void visit(LOCast cast)
           
 
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

CastFinder

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

visit

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

getCastList

public List<LOCast> getCastList()
Returns:
list of casts found in the plan

getCastSet

public Set<LOCast> getCastSet()
Returns:
set of casts found in the plan

foundAnyCast

public boolean foundAnyCast()
Returns:
true if the plan contained any Casts; false otherwise


Copyright © ${year} The Apache Software Foundation