query::window_sort

Function find_slice_from_range

Source
fn find_slice_from_range(
    sort_column: &SortColumn,
    range: &TimeRange,
) -> Result<(usize, usize)>
Expand description

Find the slice(where start <= data < end and sort by sort_column.options) from the given range

Return the offset and length of the slice