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

Method append_option

arrow-array/src/builder/primitive_dictionary_builder.rs:356–361  ·  view source on GitHub ↗
(&mut self, value: Option<V::Native>)

Source from the content-addressed store, hash-verified

354 /// Panics if the resulting length of the dictionary values array would exceed `T::Native::MAX`
355 #[inline]
356 pub fn append_option(&mut self, value: Option<V::Native>) {
357 match value {
358 None => self.append_null(),
359 Some(v) => self.append_value(v),
360 };
361 }
362
363 /// Append an `Option` value into the builder repeatedly `count` times.
364 /// This is the same as `append_option` but allows to append the same value multiple times without doing multiple lookups.

Callers 1

extendMethod · 0.45

Calls 2

append_nullMethod · 0.45
append_valueMethod · 0.45

Tested by

no test coverage detected