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

Function create_list_view_array

arrow/tests/array_equal.rs:765–782  ·  view source on GitHub ↗
(
    data: T,
)

Source from the content-addressed store, hash-verified

763}
764
765fn create_list_view_array<
766 O: OffsetSizeTrait,
767 U: IntoIterator<Item = Option<i32>>,
768 T: IntoIterator<Item = Option<U>>,
769>(
770 data: T,
771) -> GenericListViewArray<O> {
772 let mut builder = GenericListViewBuilder::<O, _>::new(Int32Builder::new());
773 for d in data {
774 if let Some(v) = d {
775 builder.append_value(v);
776 } else {
777 builder.append_null();
778 }
779 }
780
781 builder.finish()
782}
783
784fn test_test_list_view_array<T: OffsetSizeTrait>() {
785 let a = create_list_view_array::<T, _, _>([

Callers

nothing calls this directly

Calls 3

append_valueMethod · 0.45
append_nullMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected