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

Method append_nulls

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

Source from the content-addressed store, hash-verified

149 /// Appends `n` `null`s into the builder.
150 #[inline]
151 pub fn append_nulls(&mut self, n: usize) {
152 self.null_buffer_builder.append_n_nulls(n);
153 let next_offset = self.next_offset();
154 self.offsets_builder
155 .extend(std::iter::repeat_n(next_offset, n));
156 }
157
158 /// Appends array values and null to this builder as is
159 /// (this means that underlying null values are copied as is).

Calls 3

append_n_nullsMethod · 0.80
next_offsetMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected