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

Method extend_nulls

arrow-data/src/transform/mod.rs:742–749  ·  view source on GitHub ↗

Extends the in progress array with null elements, ignoring the input arrays. # Panics Panics if [`MutableArrayData`] not created with `use_nulls` or nullable source arrays

(&mut self, len: usize)

Source from the content-addressed store, hash-verified

740 ///
741 /// Panics if [`MutableArrayData`] not created with `use_nulls` or nullable source arrays
742 pub fn extend_nulls(&mut self, len: usize) {
743 self.data.len += len;
744 let bit_len = bit_util::ceil(self.data.len, 8);
745 let nulls = self.data.null_buffer();
746 nulls.resize(bit_len, 0);
747 self.data.null_count += len;
748 (self.extend_nulls)(&mut self.data, len);
749 }
750
751 /// Returns the current length
752 #[inline]

Calls 3

null_bufferMethod · 0.80
ceilFunction · 0.50
resizeMethod · 0.45