MCPcopy Create free account
hub / github.com/apache/datafusion / build_list_array

Method build_list_array

datafusion/common/src/utils/mod.rs:459–463  ·  view source on GitHub ↗

Build a single element [`ListArray`]

(self)

Source from the content-addressed store, hash-verified

457
458 /// Build a single element [`ListArray`]
459 pub fn build_list_array(self) -> ListArray {
460 let (field, arr) = self.into_field_and_arr();
461 let offsets = OffsetBuffer::from_lengths([arr.len()]);
462 ListArray::new(field, offsets, arr, None)
463 }
464
465 /// Build a single element [`ListArray`] and wrap as [`ScalarValue::List`]
466 pub fn build_list_scalar(self) -> ScalarValue {

Callers 9

make_array_innerFunction · 0.80
make_array_innerFunction · 0.80
make_list_scalarFunction · 0.80
build_list_scalarMethod · 0.80
new_listMethod · 0.80
new_list_from_iterMethod · 0.80
single_row_list_arrayFunction · 0.80

Calls 3

newFunction · 0.85
into_field_and_arrMethod · 0.80
lenMethod · 0.45

Tested by 2