org.apache.pig.impl.plan.optimizer
Class CommonNodeFinder

java.lang.Object
  extended by org.apache.pig.impl.plan.PlanVisitor<RuleOperator,RulePlan>
      extended by org.apache.pig.impl.plan.optimizer.RulePlanVisitor
          extended by org.apache.pig.impl.plan.optimizer.CommonNodeFinder

public class CommonNodeFinder
extends RulePlanVisitor


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
CommonNodeFinder(RulePlan plan)
           
 
Method Summary
 List<RuleOperator> getCommonNodes()
           
 int getCount()
           
 void visit()
          Entry point for visiting the plan.
protected  void visit(RuleOperator ruleOp)
           
 
Methods inherited from class org.apache.pig.impl.plan.PlanVisitor
getPlan, popWalker, pushWalker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonNodeFinder

public CommonNodeFinder(RulePlan plan)
Method Detail

getCount

public int getCount()

getCommonNodes

public List<RuleOperator> getCommonNodes()

visit

public void visit()
           throws VisitorException
Description copied from class: PlanVisitor
Entry point for visiting the plan.

Overrides:
visit in class PlanVisitor<RuleOperator,RulePlan>
Throws:
VisitorException - if an error is encountered while visiting.

visit

protected void visit(RuleOperator ruleOp)
              throws VisitorException
Overrides:
visit in class RulePlanVisitor
Parameters:
ruleOp - the rule operator that has to be visited
Throws:
VisitorException


Copyright © ${year} The Apache Software Foundation