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

Method build_large_list_array

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

Build a single element [`LargeListArray`]

(self)

Source from the content-addressed store, hash-verified

469
470 /// Build a single element [`LargeListArray`]
471 pub fn build_large_list_array(self) -> LargeListArray {
472 let (field, arr) = self.into_field_and_arr();
473 let offsets = OffsetBuffer::from_lengths([arr.len()]);
474 LargeListArray::new(field, offsets, arr, None)
475 }
476
477 /// Build a single element [`LargeListArray`] and wrap as [`ScalarValue::LargeList`]
478 pub fn build_large_list_scalar(self) -> ScalarValue {

Callers 3

new_large_listMethod · 0.80

Calls 3

newFunction · 0.85
into_field_and_arrMethod · 0.80
lenMethod · 0.45

Tested by 1