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

Method append_nulls

arrow-array/src/builder/primitive_builder.rs:225–229  ·  view source on GitHub ↗
(&mut self, n: usize)

Source from the content-addressed store, hash-verified

223 /// Appends `n` no. of null's into the builder
224 #[inline]
225 pub fn append_nulls(&mut self, n: usize) {
226 self.null_buffer_builder.append_n_nulls(n);
227 self.values_builder
228 .extend(std::iter::repeat_n(T::Native::default(), n));
229 }
230
231 /// Appends an `Option<T>` into the builder
232 #[inline]

Calls 3

defaultFunction · 0.85
append_n_nullsMethod · 0.80
extendMethod · 0.45