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
TreeNode
recursions should proceed.
Traits§
- Instead of implementing
TreeNode
, it’s recommended to implement aConcreteTreeNode
for 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
Transformed
fields in aResult
easily. - Defines a visitable and rewriteable tree node. This trait is implemented for plans (
ExecutionPlan
andLogicalPlan
) as well as expression trees (PhysicalExpr
,Expr
) in DataFusion. - Trait for potentially recursively transforming a tree of
TreeNode
s. - Implements the visitor pattern for recursively walking
TreeNode
s.