public class PlanDumper extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isVerbose |
protected BaseOperatorPlan |
plan |
protected PrintStream |
ps |
Constructor and Description |
---|
PlanDumper(BaseOperatorPlan plan,
PrintStream ps) |
Modifier and Type | Method and Description |
---|---|
void |
dump()
This is the public interface.
|
protected void |
dumpEdge(Operator op,
Operator suc)
Will be called to dump the edges of the plan.
|
protected void |
dumpMultiInputNestedOperator(Operator op,
MultiMap<Operator,BaseOperatorPlan> plans)
Will be called when an operator has nested plans, which are
connected to one of the multiple inputs.
|
protected void |
dumpMultiOutputNestedOperator(Operator op,
Collection<BaseOperatorPlan> plans)
Will be called for nested operators, where the plans represent
how the output of the operator is processed.
|
protected void |
dumpNestedOperator(Operator op,
Collection<BaseOperatorPlan> plans)
Will be called for nested operators.
|
protected void |
dumpOperator(Operator op)
Will be called to dump a simple operator
|
protected MultiMap<Operator,BaseOperatorPlan> |
getMultiInputNestedPlans(Operator op)
Used to determine if an operator has nested plans, which are
connected to specific input operators.
|
protected Collection<BaseOperatorPlan> |
getMultiOutputNestedPlans(Operator op)
Used to determine if an operator has nested output plans
|
protected Collection<BaseOperatorPlan> |
getNestedPlans(Operator op)
Used to determine if an operator has nested plans (without
connections to in- or output operators.
|
boolean |
isVerbose() |
protected void |
join(String sep,
String[] strings)
Helper function to print a string array.
|
protected PlanDumper |
makeDumper(BaseOperatorPlan plan,
PrintStream ps)
makeDumper is a factory method.
|
void |
setVerbose(boolean verbose) |
protected PrintStream ps
protected BaseOperatorPlan plan
protected boolean isVerbose
public PlanDumper(BaseOperatorPlan plan, PrintStream ps)
public void setVerbose(boolean verbose)
public boolean isVerbose()
public void dump()
protected PlanDumper makeDumper(BaseOperatorPlan plan, PrintStream ps)
plan
- Plan that the new dumper should handleprotected void dumpOperator(Operator op)
op
- the operator to be dumpedprotected void dumpMultiInputNestedOperator(Operator op, MultiMap<Operator,BaseOperatorPlan> plans)
op
- the nested operatorplans
- a map of input operator to connected nested planprotected void dumpMultiOutputNestedOperator(Operator op, Collection<BaseOperatorPlan> plans)
op
- the nested operatorplans
- a collection of sub plans.protected void dumpNestedOperator(Operator op, Collection<BaseOperatorPlan> plans)
op
- the nested operatorplans
- a collection of sub plans.protected void dumpEdge(Operator op, Operator suc)
op
- tail of the edgesuc
- head of the edgeprotected MultiMap<Operator,BaseOperatorPlan> getMultiInputNestedPlans(Operator op)
op
- operatorprotected Collection<BaseOperatorPlan> getMultiOutputNestedPlans(Operator op)
op
- operatorprotected Collection<BaseOperatorPlan> getNestedPlans(Operator op)
op
- operatorCopyright © 2007-2017 The Apache Software Foundation