Skip to main content

Module list

Module list 

Source

Re-exportsยง

use arrow_buffer::ScalarBuffer; ๐Ÿ”’
use crate::cast::*; ๐Ÿ”’

Functionsยง

cast_fixed_size_list_to_list ๐Ÿ”’
Cast fixed size list arrays to list arrays, maintaining the lengths of the inner lists.
cast_fixed_size_list_to_list_inner ๐Ÿ”’
cast_fixed_size_list_to_list_view ๐Ÿ”’
Same as cast_fixed_size_list_to_list but output list view array.
cast_list ๐Ÿ”’
Casting between list arrays of different offset size (e.g. List -> LargeList)
cast_list_to_fixed_size_list ๐Ÿ”’
Cast list to fixed size list array. If any inner list size does not match the size of the output fixed size list array, depending on cast_options we either output NULL for that element (safe) or raise an error.
cast_list_to_list_view ๐Ÿ”’
Casting list arrays to list view.
cast_list_values ๐Ÿ”’
Casting between list arrays of same offset size; we cast only the inner type.
cast_list_view ๐Ÿ”’
Casting between list view arrays of different offset size (e.g. ListView -> LargeListView)
cast_list_view_to_fixed_size_list ๐Ÿ”’
Same as cast_list_to_fixed_size_list but for list view arrays.
cast_list_view_to_list ๐Ÿ”’
Casting list view arrays to list.
cast_list_view_values ๐Ÿ”’
Casting between list view arrays of same offset size; we cast only the inner type.
cast_single_element_fixed_size_list_to_values ๐Ÿ”’
Cast fixed size list array to inner values type, essentially flattening the lists.
cast_values_to_list ๐Ÿ”’
Converts a non-list array to a list array where every element is a single element list. NULLs in the original array become [NULL] (i.e. output list array contains no nulls since it wraps all input nulls in a single element list).
cast_values_to_list_view ๐Ÿ”’
Same as cast_values_to_list but output list view array.
list_view_visible_values ๐Ÿ”’
Returns the values of list_view from the lowest offset to the highest end of its rows, and the offsets of the rows into those values. As rows can be in any order, these values can include some that no row uses.
list_visible_values ๐Ÿ”’
Returns the part of list.values() that the rows use, with the offsets adjusted to start at 0. For a sliced list, this drops the values outside the slice.