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

Method with_row_counts

datafusion/pruning/src/pruning_predicate.rs:2235–2245  ·  view source on GitHub ↗

Add row counts. There must be the same number of row counts as there are containers

(
            mut self,
            counts: impl IntoIterator<Item = Option<u64>>,
        )

Source from the content-addressed store, hash-verified

2233 /// Add row counts. There must be the same number of row counts as
2234 /// there are containers
2235 fn with_row_counts(
2236 mut self,
2237 counts: impl IntoIterator<Item = Option<u64>>,
2238 ) -> Self {
2239 let row_counts: ArrayRef =
2240 Arc::new(counts.into_iter().collect::<UInt64Array>());
2241
2242 self.assert_invariants();
2243 self.row_counts = Some(row_counts);
2244 self
2245 }
2246
2247 /// Add contained information.
2248 #[allow(clippy::allow_attributes, clippy::mutable_key_type)] // ScalarValue has interior mutability but is intentionally used as hash key

Calls 6

newFunction · 0.85
assert_invariantsMethod · 0.80
into_iterMethod · 0.45
intoMethod · 0.45
removeMethod · 0.45
insertMethod · 0.45