Struct datafusion_physical_expr::utils::ExprTreeNode  
source · pub struct ExprTreeNode<T> { /* private fields */ }Implementations§
source§impl<T> ExprTreeNode<T>
 
impl<T> ExprTreeNode<T>
pub fn new(expr: Arc<dyn PhysicalExpr>) -> Self
pub fn expression(&self) -> &Arc<dyn PhysicalExpr>
pub fn children(&self) -> Vec<ExprTreeNode<T>>
Trait Implementations§
source§impl<T: Clone> Clone for ExprTreeNode<T>
 
impl<T: Clone> Clone for ExprTreeNode<T>
source§fn clone(&self) -> ExprTreeNode<T>
 
fn clone(&self) -> ExprTreeNode<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl<T: Debug> Debug for ExprTreeNode<T>
 
impl<T: Debug> Debug for ExprTreeNode<T>
source§impl<T: Clone> TreeNode for ExprTreeNode<T>
 
impl<T: Clone> TreeNode for ExprTreeNode<T>
source§fn apply_children<F>(&self, op: &mut F) -> Result<VisitRecursion>where
    F: FnMut(&Self) -> Result<VisitRecursion>,
 
fn apply_children<F>(&self, op: &mut F) -> Result<VisitRecursion>where F: FnMut(&Self) -> Result<VisitRecursion>,
Apply the closure 
F to the node’s childrensource§fn map_children<F>(self, transform: F) -> Result<Self>where
    F: FnMut(Self) -> Result<Self>,
 
fn map_children<F>(self, transform: F) -> Result<Self>where F: FnMut(Self) -> Result<Self>,
Apply transform 
F to the node’s children, the transform F might have a direction(Preorder or Postorder)source§fn apply<F>(&self, op: &mut F) -> Result<VisitRecursion, DataFusionError>where
    F: FnMut(&Self) -> Result<VisitRecursion, DataFusionError>,
 
fn apply<F>(&self, op: &mut F) -> Result<VisitRecursion, DataFusionError>where F: FnMut(&Self) -> Result<VisitRecursion, DataFusionError>,
Use preorder to iterate the node on the tree so that we can
stop fast for some cases. Read more
source§fn visit<V>(&self, visitor: &mut V) -> Result<VisitRecursion, DataFusionError>where
    V: TreeNodeVisitor<N = Self>,
 
fn visit<V>(&self, visitor: &mut V) -> Result<VisitRecursion, DataFusionError>where V: TreeNodeVisitor<N = Self>,
Visit the tree node using the given TreeNodeVisitor
It performs a depth first walk of an node and its children. Read more
source§fn transform<F>(self, op: &F) -> Result<Self, DataFusionError>where
    F: Fn(Self) -> Result<Transformed<Self>, DataFusionError>,
 
fn transform<F>(self, op: &F) -> Result<Self, DataFusionError>where F: Fn(Self) -> Result<Transformed<Self>, DataFusionError>,
Convenience utils for writing optimizers rule: recursively apply the given 
op to the node tree.
When op does not apply to a given node, it is left unchanged.
The default tree traversal direction is transform_up(Postorder Traversal).source§fn transform_down<F>(self, op: &F) -> Result<Self, DataFusionError>where
    F: Fn(Self) -> Result<Transformed<Self>, DataFusionError>,
 
fn transform_down<F>(self, op: &F) -> Result<Self, DataFusionError>where F: Fn(Self) -> Result<Transformed<Self>, DataFusionError>,
Convenience utils for writing optimizers rule: recursively apply the given ‘op’ to the node and all of its
children(Preorder Traversal).
When the 
op does not apply to a given node, it is left unchanged.source§fn transform_down_mut<F>(self, op: &mut F) -> Result<Self, DataFusionError>where
    F: FnMut(Self) -> Result<Transformed<Self>, DataFusionError>,
 
fn transform_down_mut<F>(self, op: &mut F) -> Result<Self, DataFusionError>where F: FnMut(Self) -> Result<Transformed<Self>, DataFusionError>,
Convenience utils for writing optimizers rule: recursively apply the given ‘op’ to the node and all of its
children(Preorder Traversal) using a mutable function, 
F.
When the op does not apply to a given node, it is left unchanged.source§fn transform_up<F>(self, op: &F) -> Result<Self, DataFusionError>where
    F: Fn(Self) -> Result<Transformed<Self>, DataFusionError>,
 
fn transform_up<F>(self, op: &F) -> Result<Self, DataFusionError>where F: Fn(Self) -> Result<Transformed<Self>, DataFusionError>,
Convenience utils for writing optimizers rule: recursively apply the given ‘op’ first to all of its
children and then itself(Postorder Traversal).
When the 
op does not apply to a given node, it is left unchanged.source§fn transform_up_mut<F>(self, op: &mut F) -> Result<Self, DataFusionError>where
    F: FnMut(Self) -> Result<Transformed<Self>, DataFusionError>,
 
fn transform_up_mut<F>(self, op: &mut F) -> Result<Self, DataFusionError>where F: FnMut(Self) -> Result<Transformed<Self>, DataFusionError>,
Convenience utils for writing optimizers rule: recursively apply the given ‘op’ first to all of its
children and then itself(Postorder Traversal) using a mutable function, 
F.
When the op does not apply to a given node, it is left unchanged.source§fn rewrite<R>(self, rewriter: &mut R) -> Result<Self, DataFusionError>where
    R: TreeNodeRewriter<N = Self>,
 
fn rewrite<R>(self, rewriter: &mut R) -> Result<Self, DataFusionError>where R: TreeNodeRewriter<N = Self>,
Transform the tree node using the given TreeNodeRewriter
It performs a depth first walk of an node and its children. Read more
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ExprTreeNode<T>
impl<T> Send for ExprTreeNode<T>where T: Send,
impl<T> Sync for ExprTreeNode<T>where T: Sync,
impl<T> Unpin for ExprTreeNode<T>where T: Unpin,
impl<T> !UnwindSafe for ExprTreeNode<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more