org.apache.pig.impl.plan
Class PlanPrinter<O extends Operator,P extends OperatorPlan<O>>
java.lang.Object
org.apache.pig.impl.plan.PlanVisitor<O,P>
org.apache.pig.impl.plan.PlanPrinter<O,P>
public class PlanPrinter<O extends Operator,P extends OperatorPlan<O>>
- extends PlanVisitor<O,P>
A visitor mechanism printing out the logical plan.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlanPrinter
public PlanPrinter(PrintStream ps,
P plan)
- Parameters:
ps
- PrintStream to output plan information toplan
- Logical plan to print
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
depthFirst
protected String depthFirst()
throws VisitorException,
IOException
- Throws:
VisitorException
IOException
Copyright © ${year} The Apache Software Foundation