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

Method with_null_counts

datafusion/pruning/src/pruning_predicate.rs:2221–2231  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

2219 /// Add null counts. There must be the same number of null counts as
2220 /// there are containers
2221 fn with_null_counts(
2222 mut self,
2223 counts: impl IntoIterator<Item = Option<u64>>,
2224 ) -> Self {
2225 let null_counts: ArrayRef =
2226 Arc::new(counts.into_iter().collect::<UInt64Array>());
2227
2228 self.assert_invariants();
2229 self.null_counts = Some(null_counts);
2230 self
2231 }
2232
2233 /// Add row counts. There must be the same number of row counts as
2234 /// there are containers

Calls 6

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