Module datafusion_common::tree_node
source · Expand description
This module provides common traits for visiting or rewriting tree data structures easily.
Enums
- Controls how the
TreeNode
recursion should proceed forTreeNode::rewrite
. - Controls how the
TreeNode
recursion should proceed forTreeNode::visit
.
Traits
- Helper trait for implementing
TreeNode
that have children stored as Arc’s - Defines a visitable and rewriteable a tree node. This trait is implemented for plans (
ExecutionPlan
andLogicalPlan
) as well as expression trees (PhysicalExpr
,Expr
) in DataFusion - Trait for potentially recursively transform an
TreeNode
node tree. When passed toTreeNode::rewrite
,TreeNodeRewriter::mutate
is invoked recursively on all nodes of a tree. - Implements the visitor pattern for recursively walking
TreeNode
s.