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

Method len

datafusion/pruning/src/pruning_predicate.rs:2185–2188  ·  view source on GitHub ↗

Returns the number of containers represented by this statistics This picks the length of the first array as all arrays must have the same length (which is verified by `assert_invariants`).

(&self)

Source from the content-addressed store, hash-verified

2183 /// picks the length of the first array as all arrays must have the same
2184 /// length (which is verified by `assert_invariants`).
2185 fn len(&self) -> usize {
2186 // pick the first non zero length
2187 self.arrays().iter().map(|a| a.len()).next().unwrap_or(0)
2188 }
2189
2190 /// Ensure that the lengths of all arrays are consistent
2191 fn assert_invariants(&self) {

Calls 4

nextMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
arraysMethod · 0.45

Tested by

no test coverage detected