Function mz_dataflow_types::plan::reduce::convert_indexes_to_skips
source · [−]pub fn convert_indexes_to_skips(indexes: Vec<usize>) -> Vec<usize>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
Expand description
Transforms a vector containing indexes of needed columns into one containing the “skips” an iterator over a Row would need to perform to see those values.
This function requires that all of the elements in indexes
are strictly
increasing.
E.g. [3, 6, 10, 15] turns into [3, 3, 4, 5]