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

Method append_value_n

arrow-array/src/builder/primitive_builder.rs:211–214  ·  view source on GitHub ↗
(&mut self, v: T::Native, n: usize)

Source from the content-addressed store, hash-verified

209 /// Appends a value of type `T` into the builder `n` times
210 #[inline]
211 pub fn append_value_n(&mut self, v: T::Native, n: usize) {
212 self.null_buffer_builder.append_n_non_nulls(n);
213 self.values_builder.extend(std::iter::repeat_n(v, n));
214 }
215
216 /// Appends a null slot into the builder
217 #[inline]

Callers 3

append_nMethod · 0.45
append_nMethod · 0.45
append_nMethod · 0.45

Calls 2

append_n_non_nullsMethod · 0.80
extendMethod · 0.45

Tested by

no test coverage detected