org.apache.pig.impl.logicalLayer
Class LOPrinter

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

public class LOPrinter
extends LOVisitor

A visitor mechanism printing out the logical plan.


Field Summary
 
Fields inherited from class org.apache.pig.impl.plan.PlanVisitor
mCurrentWalker, mPlan
 
Constructor Summary
LOPrinter(PrintStream ps, LogicalPlan plan)
           
 
Method Summary
protected  String depthFirstLP()
           
 void print(OutputStream printer)
           
 void setVerbose(boolean verbose)
           
 void visit()
          Entry point for visiting the plan.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LOPrinter

public LOPrinter(PrintStream ps,
                 LogicalPlan 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<LogicalOperator,LogicalPlan>
Throws:
VisitorException - if an error is encountered while visiting.

setVerbose

public void setVerbose(boolean verbose)

print

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

depthFirstLP

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


Copyright © ${year} The Apache Software Foundation