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

Method append_value

arrow-array/src/builder/generic_bytes_builder.rs:106–111  ·  view source on GitHub ↗
(&mut self, value: impl AsRef<T::Native>)

Source from the content-addressed store, hash-verified

104 /// [`BinaryArray`]: crate::BinaryArray
105 #[inline]
106 pub fn append_value(&mut self, value: impl AsRef<T::Native>) {
107 self.value_builder
108 .extend_from_slice(value.as_ref().as_ref());
109 self.null_buffer_builder.append(true);
110 self.offsets_builder.push(self.next_offset());
111 }
112
113 /// Appends a value of type `T` into the builder `n` times.
114 ///

Calls 5

extend_from_sliceMethod · 0.80
as_refMethod · 0.45
appendMethod · 0.45
pushMethod · 0.45
next_offsetMethod · 0.45

Tested by 4

test_write_strFunction · 0.36
test_write_bytesFunction · 0.36
test_append_value_nFunction · 0.36