Add row counts. There must be the same number of row counts as there are containers
(
mut self,
counts: impl IntoIterator<Item = Option<u64>>,
)
| 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 |