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

Method append_nulls

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

Source from the content-addressed store, hash-verified

277 /// Appends `n` `null`s into the builder.
278 #[inline]
279 pub fn append_nulls(&mut self, n: usize) {
280 let next_offset = self.next_offset();
281 self.offsets_builder
282 .extend(std::iter::repeat_n(next_offset, n));
283 self.null_buffer_builder.append_n_nulls(n);
284 }
285
286 /// Appends an optional value into this [`GenericListBuilder`]
287 ///

Calls 3

append_n_nullsMethod · 0.80
next_offsetMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected