Class ExecNodePlanDumper
java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.utils.ExecNodePlanDumper
An utility class for converting an exec node plan to a string as a tree style.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringdagToString(List<ExecNode<?>> nodes) Converts anExecNodeDAG to a string as a tree style.static StringdagToString(ExecNodeGraph execGraph) Converts anExecNodeGraphto a string as a tree style. seedagToString(List).static StringtreeToString(ExecNode<?> node) Converts anExecNodetree to a string as a tree style.static StringtreeToString(ExecNode<?> node, List<ExecNode<?>> borders, boolean includingBorders) Converts anExecNodetree to a string as a tree style.
-
Method Details
-
treeToString
Converts anExecNodetree to a string as a tree style.The following tree of
ExecNodeSink | Join / \ Filter1 Filter2 \ / Project | Scanwould be converted to the tree style as following:
Sink +- Join :- Filter1 : +- Project(reuse_id=[1]) : +- Scan +- Filter2 +- Reused(reference_id=[1])}- Parameters:
node- the ExecNode to convert- Returns:
- explain plan of ExecNode
-
treeToString
public static String treeToString(ExecNode<?> node, List<ExecNode<?>> borders, boolean includingBorders) Converts anExecNodetree to a string as a tree style.- Parameters:
node- the ExecNode to convertborders- node sets that stop visit when meet themincludingBorders- Whether print the border nodes- Returns:
- the plan of ExecNode
-
dagToString
Converts anExecNodeGraphto a string as a tree style. seedagToString(List). -
dagToString
Converts anExecNodeDAG to a string as a tree style.The following DAG of
ExecNodeSink1 Sink2 | | Filter3 Filter4 \ / Join / \ Filter1 Filter2 \ / Project | Scanwould be converted to the tree style as following:
Join(reuse_id=[2]) :- Filter1 : +- Project(reuse_id=[1]) : +- Scan +- Filter2 +- Reused(reference_id=[1]) Sink1 +- Filter3 +- Reused(reference_id=[2]) Sink2 +- Filter4 +- Reused(reference_id=[2])- Parameters:
nodes- the ExecNodes to convert- Returns:
- the plan of ExecNode
-