public class ExecNodePlanDumper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
dagToString(ExecNodeGraph execGraph)
Converts an
ExecNodeGraph to a string as a tree style. see dagToString(List) . |
static String |
dagToString(List<ExecNode<?>> nodes)
Converts an
ExecNode DAG to a string as a tree style. |
static String |
treeToString(ExecNode<?> node)
Converts an
ExecNode tree to a string as a tree style. |
static String |
treeToString(ExecNode<?> node,
List<ExecNode<?>> borders,
boolean includingBorders)
Converts an
ExecNode tree to a string as a tree style. |
public static String treeToString(ExecNode<?> node)
ExecNode
tree to a string as a tree style.
The following tree of ExecNode
Sink
|
Join
/ \
Filter1 Filter2
\ /
Project
|
Scan
would be converted to the tree style as following:
Sink
+- Join
:- Filter1
: +- Project(reuse_id=[1])
: +- Scan
+- Filter2
+- Reused(reference_id=[1])
}
node
- the ExecNode to convertpublic static String treeToString(ExecNode<?> node, List<ExecNode<?>> borders, boolean includingBorders)
ExecNode
tree to a string as a tree style.node
- the ExecNode to convertborders
- node sets that stop visit when meet themincludingBorders
- Whether print the border nodespublic static String dagToString(ExecNodeGraph execGraph)
ExecNodeGraph
to a string as a tree style. see dagToString(List)
.public static String dagToString(List<ExecNode<?>> nodes)
ExecNode
DAG to a string as a tree style.
The following DAG of ExecNode
Sink1 Sink2
| |
Filter3 Filter4
\ /
Join
/ \
Filter1 Filter2
\ /
Project
|
Scan
would 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])
nodes
- the ExecNodes to convertCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.