MCPcopy Create free account
hub / github.com/apache/arrow-rs / append_slice

Method append_slice

arrow-buffer/src/builder/null.rs:181–190  ·  view source on GitHub ↗

Appends a boolean slice into the builder to indicate the validations of these items.

(&mut self, slice: &[bool])

Source from the content-addressed store, hash-verified

179 /// Appends a boolean slice into the builder
180 /// to indicate the validations of these items.
181 pub fn append_slice(&mut self, slice: &[bool]) {
182 if slice.iter().any(|v| !v) {
183 self.materialize_if_needed()
184 }
185 if let Some(buf) = self.bitmap_builder.as_mut() {
186 buf.append_slice(slice)
187 } else {
188 self.len += slice.len();
189 }
190 }
191
192 /// Append [`NullBuffer`] to this [`NullBufferBuilder`]
193 ///

Calls 3

materialize_if_neededMethod · 0.80
iterMethod · 0.45
lenMethod · 0.45