Module render_tree

Module render_tree 

Source
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.
RenderTree
Main structure for rendering an execution plan as a tree. Manages a 2D grid of nodes and their layout information.
RenderTreeNode
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.