Module datafusion_common::tree_node
source · Expand description
This module provides common traits for visiting or rewriting tree data structures easily.
Structs§
- This struct is used by tree transformation APIs such as
Enums§
- Controls how
TreeNoderecursions should proceed.
Traits§
- Instead of implementing
TreeNode, it’s recommended to implement aConcreteTreeNodefor trees that contain nodes with payloads. This approach ensures safe execution of algorithms involving payloads, by enforcing rules for detaching and reattaching child nodes. - Transformation helper to process tree nodes that are siblings.
- Transformation helper to access
Transformedfields in aResulteasily. - Defines a visitable and rewriteable tree node. This trait is implemented for plans (
ExecutionPlanandLogicalPlan) as well as expression trees (PhysicalExpr,Expr) in DataFusion. - Trait for potentially recursively transforming a tree of
TreeNodes. - Implements the visitor pattern for recursively walking
TreeNodes.