org.apache.pig.impl.plan
Class PlanPrinter<O extends Operator,P extends OperatorPlan<O>>

java.lang.Object
  extended by org.apache.pig.impl.plan.PlanVisitor<O,P>
      extended by org.apache.pig.impl.plan.PlanPrinter<O,P>

public class PlanPrinter<O extends Operator,P extends OperatorPlan<O>>
extends PlanVisitor<O,P>

A visitor mechanism printing out the logical plan.


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
PlanPrinter(PrintStream ps, P 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.PlanVisitor
getPlan, popWalker, pushWalker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlanPrinter

public PlanPrinter(PrintStream ps,
                   P 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<O extends Operator,P extends OperatorPlan<O>>
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