org.apache.pig.experimental.logical.optimizer
Class PlanPrinter

java.lang.Object
  extended by org.apache.pig.experimental.plan.PlanVisitor
      extended by org.apache.pig.experimental.logical.relational.LogicalPlanVisitor
          extended by org.apache.pig.experimental.logical.optimizer.AllExpressionVisitor
              extended by org.apache.pig.experimental.logical.optimizer.PlanPrinter

public class PlanPrinter
extends AllExpressionVisitor


Nested Class Summary
 class PlanPrinter.DepthFirstMemoryWalker
           
 
Field Summary
protected  int level
           
protected  PrintStream stream
           
 
Fields inherited from class org.apache.pig.experimental.logical.optimizer.AllExpressionVisitor
currentOp, exprVisitor
 
Fields inherited from class org.apache.pig.experimental.plan.PlanVisitor
currentWalker, DEFAULT_SCOPE, plan
 
Constructor Summary
PlanPrinter(OperatorPlan plan, PrintStream ps)
           
 
Method Summary
protected  LogicalExpressionVisitor getVisitor(LogicalExpressionPlan expr)
          Get a new instance of the expression visitor to apply to a given expression.
 String toString()
           
 void visitLOCogroup(LOCogroup op)
           
 void visitLOFilter(LOFilter op)
           
 void visitLOForEach(LOForEach op)
           
 void visitLOGenerate(LOGenerate op)
           
 void visitLOInnerLoad(LOInnerLoad op)
           
 void visitLOLoad(LOLoad op)
           
 void visitLOSplit(LOSplit op)
           
 void visitLOSplitOutput(LOSplitOutput op)
           
 void visitLOStore(LOStore op)
           
 void visitLOUnion(LOUnion op)
           
 
Methods inherited from class org.apache.pig.experimental.logical.optimizer.AllExpressionVisitor
visitLOJoin
 
Methods inherited from class org.apache.pig.experimental.plan.PlanVisitor
getPlan, popWalker, pushWalker, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stream

protected PrintStream stream

level

protected int level
Constructor Detail

PlanPrinter

public PlanPrinter(OperatorPlan plan,
                   PrintStream ps)
Method Detail

getVisitor

protected LogicalExpressionVisitor getVisitor(LogicalExpressionPlan expr)
Description copied from class: AllExpressionVisitor
Get a new instance of the expression visitor to apply to a given expression.

Specified by:
getVisitor in class AllExpressionVisitor
Parameters:
expr - LogicalExpressionPlan that will be visited
Returns:
a new LogicalExpressionVisitor for that expression

visitLOLoad

public void visitLOLoad(LOLoad op)
                 throws IOException
Overrides:
visitLOLoad in class LogicalPlanVisitor
Throws:
IOException

visitLOStore

public void visitLOStore(LOStore op)
                  throws IOException
Overrides:
visitLOStore in class LogicalPlanVisitor
Throws:
IOException

visitLOForEach

public void visitLOForEach(LOForEach op)
                    throws IOException
Overrides:
visitLOForEach in class AllExpressionVisitor
Throws:
IOException

visitLOFilter

public void visitLOFilter(LOFilter op)
                   throws IOException
Overrides:
visitLOFilter in class AllExpressionVisitor
Throws:
IOException

visitLOGenerate

public void visitLOGenerate(LOGenerate op)
                     throws IOException
Overrides:
visitLOGenerate in class AllExpressionVisitor
Throws:
IOException

visitLOInnerLoad

public void visitLOInnerLoad(LOInnerLoad op)
                      throws IOException
Overrides:
visitLOInnerLoad in class AllExpressionVisitor
Throws:
IOException

visitLOCogroup

public void visitLOCogroup(LOCogroup op)
                    throws IOException
Overrides:
visitLOCogroup in class AllExpressionVisitor
Throws:
IOException

visitLOSplitOutput

public void visitLOSplitOutput(LOSplitOutput op)
                        throws IOException
Overrides:
visitLOSplitOutput in class AllExpressionVisitor
Throws:
IOException

visitLOSplit

public void visitLOSplit(LOSplit op)
                  throws IOException
Overrides:
visitLOSplit in class LogicalPlanVisitor
Throws:
IOException

visitLOUnion

public void visitLOUnion(LOUnion op)
                  throws IOException
Overrides:
visitLOUnion in class LogicalPlanVisitor
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © ${year} The Apache Software Foundation