Skip to main content

find_slice_end_index

Function find_slice_end_index 

Source
pub fn find_slice_end_index(
    array: &ArrayRef,
    index: usize,
    ctx: &mut ExecutionCtx,
) -> VortexResult<usize>
Expand description

Find the physical offset for and index that would be an end of the slice i.e., one past the last element.

If the index exists in the array we want to take that position (as we are searching from the right) otherwise we want to take the next one