Function re_chunk::util::take_array
source · pub fn take_array<A: ArrowArray + Clone, O: Index>(
array: &A,
indices: &PrimitiveArray<O>
) -> A
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 null
s).
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.