Expand description
This module provides functionality for rendering an execution plan as a tree structure. It helps in visualizing how different operations in a query are connected and organized.
Structsยง
- Coordinate
- Represents a 2D coordinate in the rendered tree. Used to track positions of nodes and their connections.
- Render
Tree - Main structure for rendering an execution plan as a tree. Manages a 2D grid of nodes and their layout information.
- Render
Tree Node - Represents a node in the render tree, containing information about an execution plan operator and its relationships to other operators.
Functionsยง
- create_
tree_ ๐recursive - Recursively builds the render tree structure. Traverses the execution plan and creates corresponding render nodes while maintaining proper positioning and parent-child relationships.
- fmt_
display ๐ - get_
tree_ ๐width_ height - Calculates the required dimensions of the tree. This ensures we allocate enough space for the entire tree structure.