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

Method append_options

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

Append an `Option` value into the builder repeatedly `count` times. This is the same as `append_option` but allows to append the same value multiple times without doing multiple lookups. # Panics Panics if the resulting length of the dictionary values array would exceed `T::Native::MAX`

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

Source from the content-addressed store, hash-verified

371 ///
372 /// Panics if the resulting length of the dictionary values array would exceed `T::Native::MAX`
373 pub fn append_options(&mut self, value: Option<impl AsRef<T::Native>>, count: usize) {
374 match value {
375 None => self.keys_builder.append_nulls(count),
376 Some(v) => self.append_values(v, count),
377 };
378 }
379
380 /// Extends builder with an existing dictionary array.
381 ///

Callers

nothing calls this directly

Calls 2

append_nullsMethod · 0.45
append_valuesMethod · 0.45

Tested by

no test coverage detected