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

Method arrays

datafusion/pruning/src/pruning_predicate.rs:2164–2180  ·  view source on GitHub ↗

return an iterator over all arrays in this statistics

(&self)

Source from the content-addressed store, hash-verified

2162
2163 /// return an iterator over all arrays in this statistics
2164 fn arrays(&self) -> Vec<ArrayRef> {
2165 let contained_arrays = self
2166 .contained
2167 .iter()
2168 .map(|(_values, contained)| Arc::new(contained.clone()) as ArrayRef);
2169
2170 [
2171 self.min.as_ref().cloned(),
2172 self.max.as_ref().cloned(),
2173 self.null_counts.as_ref().cloned(),
2174 self.row_counts.as_ref().cloned(),
2175 ]
2176 .into_iter()
2177 .flatten()
2178 .chain(contained_arrays)
2179 .collect()
2180 }
2181
2182 /// Returns the number of containers represented by this statistics This
2183 /// picks the length of the first array as all arrays must have the same

Callers 2

lenMethod · 0.45
assert_invariantsMethod · 0.45

Calls 9

newFunction · 0.85
collectMethod · 0.80
flattenMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45
into_iterMethod · 0.45
clonedMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected