org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans
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.backend.hadoop.executionengine.physicalLayer.plans.PlanPrinter<O,P>

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


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
PlanPrinter(P plan)
           
PlanPrinter(P plan, PrintStream stream)
           
 
Method Summary
protected  void breadthFirst()
           
protected  String depthFirstPP()
           
 void print(OutputStream printer)
           
 void setVerbose(boolean verbose)
           
 void visit()
          Entry point for visiting the plan.
 void visitFilter(POFilter op)
           
 void visitGlobalRearrange(POGlobalRearrange op)
           
 void visitLoad(POLoad op)
           
 void visitLocalRearrange(POLocalRearrange op)
           
 void visitPackage(POPackage op)
           
 void visitStartMap(POUnion op)
           
 void visitStore(POStore op)
           
 
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(P plan)

PlanPrinter

public PlanPrinter(P plan,
                   PrintStream stream)
Method Detail

setVerbose

public void setVerbose(boolean verbose)

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

breadthFirst

protected void breadthFirst()
                     throws VisitorException
Throws:
VisitorException

depthFirstPP

protected String depthFirstPP()
                       throws VisitorException
Throws:
VisitorException

visitLoad

public void visitLoad(POLoad op)

visitStore

public void visitStore(POStore op)

visitFilter

public void visitFilter(POFilter op)

visitLocalRearrange

public void visitLocalRearrange(POLocalRearrange op)

visitGlobalRearrange

public void visitGlobalRearrange(POGlobalRearrange op)

visitPackage

public void visitPackage(POPackage op)

visitStartMap

public void visitStartMap(POUnion op)


Copyright © ${year} The Apache Software Foundation