MCPcopy Create free account
hub / github.com/apache/datafusion / create_tree

Method create_tree

datafusion/physical-plan/src/render_tree.rs:87–95  ·  view source on GitHub ↗

Creates a new render tree from an execution plan.

(plan: &dyn ExecutionPlan)

Source from the content-addressed store, hash-verified

85impl RenderTree {
86 /// Creates a new render tree from an execution plan.
87 pub fn create_tree(plan: &dyn ExecutionPlan) -> Self {
88 let (width, height) = get_tree_width_height(plan);
89
90 let mut result = Self::new(width, height);
91
92 create_tree_recursive(&mut result, plan, 0, 0);
93
94 result
95 }
96
97 fn new(width: usize, height: usize) -> Self {
98 RenderTree {

Callers

nothing calls this directly

Calls 3

get_tree_width_heightFunction · 0.85
newFunction · 0.85
create_tree_recursiveFunction · 0.85

Tested by

no test coverage detected