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

Method append_buffer

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

Append [`NullBuffer`] to this [`NullBufferBuilder`] This is useful when you want to concatenate two null buffers.

(&mut self, buffer: &NullBuffer)

Source from the content-addressed store, hash-verified

193 ///
194 /// This is useful when you want to concatenate two null buffers.
195 pub fn append_buffer(&mut self, buffer: &NullBuffer) {
196 if buffer.null_count() > 0 {
197 self.materialize_if_needed();
198 }
199 if let Some(buf) = self.bitmap_builder.as_mut() {
200 buf.append_buffer(buffer.inner())
201 } else {
202 self.len += buffer.len();
203 }
204 }
205
206 /// Builds the [`NullBuffer`] and resets the builder.
207 ///

Callers 15

test_append_buffersFunction · 0.45
test_append_empty_bufferFunction · 0.45
concat_dictionariesFunction · 0.45
concat_listsFunction · 0.45
concat_list_viewFunction · 0.45
concat_structsFunction · 0.45
copy_rowsMethod · 0.45
copy_rowsMethod · 0.45

Calls 4

materialize_if_neededMethod · 0.80
null_countMethod · 0.45
innerMethod · 0.45
lenMethod · 0.45