MCPcopy Create free account
hub / github.com/apache/datafusion / visit_parent

Method visit_parent

datafusion/common/src/tree_node.rs:564–572  ·  view source on GitHub ↗

Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`] value and the fact that `f` is visiting the current node's parent.

(
        self,
        f: F,
    )

Source from the content-addressed store, hash-verified

562 /// Continues visiting nodes with `f` depending on the current [`TreeNodeRecursion`]
563 /// value and the fact that `f` is visiting the current node's parent.
564 pub fn visit_parent<F: FnOnce() -> Result<TreeNodeRecursion>>(
565 self,
566 f: F,
567 ) -> Result<TreeNodeRecursion> {
568 match self {
569 TreeNodeRecursion::Continue => f(),
570 TreeNodeRecursion::Jump | TreeNodeRecursion::Stop => Ok(self),
571 }
572 }
573}
574
575/// Result of tree walk / transformation APIs

Callers 2

visit_with_subqueriesMethod · 0.80
visitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected