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

Method append_values

arrow-array/src/builder/primitive_builder.rs:253–261  ·  view source on GitHub ↗
(&mut self, values: &[T::Native], is_valid: &[bool])

Source from the content-addressed store, hash-verified

251 /// Panics if `values` and `is_valid` have different lengths
252 #[inline]
253 pub fn append_values(&mut self, values: &[T::Native], is_valid: &[bool]) {
254 assert_eq!(
255 values.len(),
256 is_valid.len(),
257 "Value and validity lengths must be equal"
258 );
259 self.null_buffer_builder.append_slice(is_valid);
260 self.values_builder.extend_from_slice(values);
261 }
262
263 /// Appends values from a iter of type `Option<T>`
264 ///

Callers

nothing calls this directly

Calls 2

extend_from_sliceMethod · 0.80
append_sliceMethod · 0.45

Tested by

no test coverage detected