org.apache.pig.newplan.logical.optimizer
Class LogicalPlanPrinter

java.lang.Object
  extended by org.apache.pig.newplan.PlanVisitor
      extended by org.apache.pig.newplan.logical.optimizer.LogicalPlanPrinter

public class LogicalPlanPrinter
extends PlanVisitor

A visitor mechanism printing out the logical plan.


Field Summary
protected  boolean reverse
           
static String SEPERATE
           
protected  ArrayList<byte[]> tabs
           
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
LogicalPlanPrinter(OperatorPlan plan, PrintStream ps)
           
 
Method Summary
protected  void depthFirstLP()
           
 void visit()
          Entry point for visiting the plan.
 
Methods inherited from class org.apache.pig.newplan.PlanVisitor
getPlan, popWalker, pushWalker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPERATE

public static String SEPERATE

tabs

protected ArrayList<byte[]> tabs

reverse

protected boolean reverse
Constructor Detail

LogicalPlanPrinter

public LogicalPlanPrinter(OperatorPlan plan,
                          PrintStream ps)
                   throws FrontendException
Parameters:
ps - PrintStream to output plan information to
plan - Logical plan to print
Throws:
FrontendException
Method Detail

visit

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

Overrides:
visit in class PlanVisitor
Throws:
VisitorException - if an error is encountered while visiting.
FrontendException

depthFirstLP

protected void depthFirstLP()
                     throws FrontendException,
                            IOException
Throws:
FrontendException
IOException


Copyright © 2007-2012 The Apache Software Foundation