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

Method append_array

arrow-array/src/builder/boolean_builder.rs:152–159  ·  view source on GitHub ↗
(&mut self, array: &BooleanArray)

Source from the content-addressed store, hash-verified

150 /// (this means that underlying null values are copied as is).
151 #[inline]
152 pub fn append_array(&mut self, array: &BooleanArray) {
153 self.values_builder.append_buffer(array.values());
154 if let Some(null_buffer) = array.nulls() {
155 self.null_buffer_builder.append_buffer(null_buffer);
156 } else {
157 self.null_buffer_builder.append_n_non_nulls(array.len());
158 }
159 }
160
161 /// Builds the [BooleanArray] and reset this builder.
162 pub fn finish(&mut self) -> BooleanArray {

Callers 7

concat_byte_viewFunction · 0.45
concat_primitivesFunction · 0.45
concat_booleanFunction · 0.45
concat_bytesFunction · 0.45
extendMethod · 0.45
test_append_arrayFunction · 0.45

Calls 5

append_n_non_nullsMethod · 0.80
append_bufferMethod · 0.45
valuesMethod · 0.45
nullsMethod · 0.45
lenMethod · 0.45

Tested by 2

test_append_arrayFunction · 0.36