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

Method from_iter_values

arrow-array/src/array/byte_view_array.rs:279–290  ·  view source on GitHub ↗

Creates a [`GenericByteViewArray`] based on an iterator of values without nulls

(iter: I)

Source from the content-addressed store, hash-verified

277
278 /// Creates a [`GenericByteViewArray`] based on an iterator of values without nulls
279 pub fn from_iter_values<Ptr, I>(iter: I) -> Self
280 where
281 Ptr: AsRef<T::Native>,
282 I: IntoIterator<Item = Ptr>,
283 {
284 let iter = iter.into_iter();
285 let mut builder = GenericByteViewBuilder::<T>::with_capacity(iter.size_hint().0);
286 for v in iter {
287 builder.append_value(v);
288 }
289 builder.finish()
290 }
291
292 /// Deconstruct this array into its constituent parts
293 pub fn into_parts(self) -> (ScalarBuffer<u128>, Arc<[Buffer]>, Option<NullBuffer>) {

Callers

nothing calls this directly

Calls 4

into_iterMethod · 0.45
size_hintMethod · 0.45
append_valueMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected