Function re_arrow_util::arrow_util::take_array

source ยท
pub fn take_array<A, O>(array: &A, indices: &PrimitiveArray<O>) -> A
where A: Array + Clone + 'static, O: ArrowPrimitiveType, O::Native: Add<Output = O::Native>,
Expand description

Applies a take kernel to the given array.

In release builds, indices are allowed to have null entries (they will be taken as nulls). In debug builds, null entries will panic.

Note: a take kernel copies the data in order to make the resulting arrays contiguous in memory.

Takes care of up- and down-casting the data back and forth on behalf of the caller.