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

Method update_data

datafusion/common/src/tree_node.rs:696–698  ·  view source on GitHub ↗

Applies an infallible `f` to the data of this [`Transformed`] object, without modifying the `transformed` flag.

(self, f: F)

Source from the content-addressed store, hash-verified

694 /// Applies an infallible `f` to the data of this [`Transformed`] object,
695 /// without modifying the `transformed` flag.
696 pub fn update_data<U, F: FnOnce(T) -> U>(self, f: F) -> Transformed<U> {
697 Transformed::new(f(self.data), self.transformed, self.tnr)
698 }
699
700 /// Applies a fallible `f` (returns `Result`) to the data of this
701 /// [`Transformed`] object, without modifying the `transformed` flag.

Callers 11

map_childrenMethod · 0.80
map_childrenMethod · 0.80
map_expressionsMethod · 0.80
map_elementsMethod · 0.80
map_childrenMethod · 0.80
rewriteMethod · 0.80
try_optimize_sortMethod · 0.80
rewrite_planMethod · 0.80
analyze_internalFunction · 0.80

Calls 1

newFunction · 0.85

Tested by

no test coverage detected