public class DotMRPrinter extends DotPlanDumper<MapReduceOper,MROperPlan,DotMRPrinter.InnerOperator,DotMRPrinter.InnerPlan>
Modifier and Type | Class and Description |
---|---|
static class |
DotMRPrinter.InnerOperator
Helper class to represent the relationship of map, reduce and
combine phases in an MR operator.
|
static class |
DotMRPrinter.InnerPlan
Helper class to represent the relationship of map, reduce and
combine phases in an MR operator.
|
mMultiInputSubgraphs, mMultiOutputSubgraphs, mSubgraphs
isVerbose, plan, ps
Constructor and Description |
---|
DotMRPrinter(MROperPlan plan,
PrintStream ps) |
Modifier and Type | Method and Description |
---|---|
protected String[] |
getAttributes(MapReduceOper op)
Used to generate the the attributes of a node
|
protected String |
getName(MapReduceOper op)
Used to generate the label for an operator.
|
protected Collection<DotMRPrinter.InnerPlan> |
getNestedPlans(MapReduceOper op)
Used to determine if an operator has nested plans (without
connections to in- or output operators.
|
protected DotPlanDumper |
makeDumper(DotMRPrinter.InnerPlan plan,
PrintStream ps)
makeDumper is a factory method.
|
void |
setVerbose(boolean verbose) |
dump, dumpEdge, dumpInvisibleOperators, dumpMultiInputNestedOperator, dumpMultiOutputNestedOperator, dumpNestedOperator, dumpOperator
getMultiInputNestedPlans, getMultiOutputNestedPlans, isVerbose, join
public DotMRPrinter(MROperPlan plan, PrintStream ps)
public void setVerbose(boolean verbose)
setVerbose
in class PlanDumper<MapReduceOper,MROperPlan,DotMRPrinter.InnerPlan>
protected DotPlanDumper makeDumper(DotMRPrinter.InnerPlan plan, PrintStream ps)
PlanDumper
makeDumper
in class DotPlanDumper<MapReduceOper,MROperPlan,DotMRPrinter.InnerOperator,DotMRPrinter.InnerPlan>
plan
- Plan that the new dumper should handleprotected String getName(MapReduceOper op)
DotPlanDumper
getName
in class DotPlanDumper<MapReduceOper,MROperPlan,DotMRPrinter.InnerOperator,DotMRPrinter.InnerPlan>
op
- operator to dumpprotected Collection<DotMRPrinter.InnerPlan> getNestedPlans(MapReduceOper op)
PlanDumper
getNestedPlans
in class PlanDumper<MapReduceOper,MROperPlan,DotMRPrinter.InnerPlan>
op
- operatorprotected String[] getAttributes(MapReduceOper op)
DotPlanDumper
getAttributes
in class DotPlanDumper<MapReduceOper,MROperPlan,DotMRPrinter.InnerOperator,DotMRPrinter.InnerPlan>
op
- operatorCopyright © 2007-2017 The Apache Software Foundation