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

Method append_n

arrow-array/src/builder/generic_bytes_dictionary_builder.rs:312–320  ·  view source on GitHub ↗

Append a value multiple times to the array. This is the same as `append` but allows to append the same value multiple times without doing multiple lookups. Returns an error if the new index would overflow the key type.

(
        &mut self,
        value: impl AsRef<T::Native>,
        count: usize,
    )

Source from the content-addressed store, hash-verified

310 ///
311 /// Returns an error if the new index would overflow the key type.
312 pub fn append_n(
313 &mut self,
314 value: impl AsRef<T::Native>,
315 count: usize,
316 ) -> Result<K::Native, ArrowError> {
317 let key = self.get_or_insert_key(value)?;
318 self.keys_builder.append_value_n(key, count);
319 Ok(key)
320 }
321
322 /// Infallibly append a value to this builder
323 ///

Callers 1

append_valuesMethod · 0.45

Calls 2

get_or_insert_keyMethod · 0.45
append_value_nMethod · 0.45

Tested by

no test coverage detected