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_listbut 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_optionswe either outputNULLfor 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_listbut 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_listbut output list view array. - list_
view_ ๐visible_ values - Returns the values of
list_viewfrom 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.