Function polars_arrow::kernels::take::take_value_indices_from_list[][src]

pub unsafe fn take_value_indices_from_list(
    list: &ListArray<i64>,
    indices: &UInt32Array
) -> (UInt32Array, AlignedVec<i64>)
Expand description

Forked and adapted from arrow-rs This is faster because it does no bounds checks and allocates directly into aligned memory

Takes/filters a list array’s inner data using the offsets of the list array.

Where a list array has indices [0,2,5,10], taking indices of [2,0] returns an array of the indices [5..10, 0..2] and offsets [0,5,7] (5 elements and 2 elements)

Safety

No bounds checks