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

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

public class RulePlanPrinter
extends RulePlanVisitor

A visitor mechanism printing out the logical plan.


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
RulePlanPrinter(PrintStream ps, RulePlan plan)
           
 
Method Summary
protected  String depthFirst()
           
 void print(OutputStream printer)
           
 void visit()
          Entry point for visiting the plan.
 
Methods inherited from class org.apache.pig.impl.plan.optimizer.RulePlanVisitor
visit
 
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

RulePlanPrinter

public RulePlanPrinter(PrintStream ps,
                       RulePlan plan)
Parameters:
ps - PrintStream to output plan information to
plan - Logical plan to print
Method Detail

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.

print

public void print(OutputStream printer)
           throws VisitorException,
                  IOException
Throws:
VisitorException
IOException

depthFirst

protected String depthFirst()
                     throws VisitorException,
                            IOException
Throws:
VisitorException
IOException


Copyright © ${year} The Apache Software Foundation