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
static String SEPERATE
           
 
Fields inherited from class org.apache.pig.newplan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
LogicalPlanPrinter(OperatorPlan plan, PrintStream ps)
           
 
Method Summary
protected  String depthFirstLP()
           
protected  String reverseDepthFirstLP()
           
 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
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:
FrontendException

depthFirstLP

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

reverseDepthFirstLP

protected String reverseDepthFirstLP()
                              throws FrontendException,
                                     IOException
Throws:
FrontendException
IOException


Copyright © 2012 The Apache Software Foundation