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

Method append

arrow-array/src/builder/primitive_dictionary_builder.rs:301–305  ·  view source on GitHub ↗
(&mut self, value: V::Native)

Source from the content-addressed store, hash-verified

299 /// value is appended to the values array.
300 #[inline]
301 pub fn append(&mut self, value: V::Native) -> Result<K::Native, ArrowError> {
302 let key = self.get_or_insert_key(value)?;
303 self.keys_builder.append_value(key);
304 Ok(key)
305 }
306
307 /// Append a value multiple times to the array.
308 /// This is the same as `append` but allows to append the same value multiple times without doing multiple lookups.

Calls 2

get_or_insert_keyMethod · 0.45
append_valueMethod · 0.45