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

Method map_data

datafusion/common/src/tree_node.rs:702–704  ·  view source on GitHub ↗

Applies a fallible `f` (returns `Result`) to the data of this [`Transformed`] object, without modifying the `transformed` flag.

(self, f: F)

Source from the content-addressed store, hash-verified

700 /// Applies a fallible `f` (returns `Result`) to the data of this
701 /// [`Transformed`] object, without modifying the `transformed` flag.
702 pub fn map_data<U, F: FnOnce(T) -> Result<U>>(self, f: F) -> Result<Transformed<U>> {
703 f(self.data).map(|data| Transformed::new(data, self.transformed, self.tnr))
704 }
705
706 /// Applies a fallible transforming `f` to the data of this [`Transformed`]
707 /// object.

Callers 15

map_childrenMethod · 0.80
map_elementsMethod · 0.80
map_elementsMethod · 0.80
rewrite_extension_inputsFunction · 0.80
map_subqueriesMethod · 0.80
map_elementsMethod · 0.80
map_childrenMethod · 0.80
rewriteMethod · 0.80
rewrite_childrenFunction · 0.80
try_optimize_projMethod · 0.80
try_optimize_filterMethod · 0.80

Calls 2

newFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected