mz_compute::render::context

Function specialized_arrangement_key

Source
fn specialized_arrangement_key<K, V>(
    key: Vec<MirScalarExpr>,
    thinning: Vec<usize>,
) -> impl FnMut(Row) -> Result<(K, V), DataflowError>
Expand description

Obtains a function that maps input rows to (key, value) pairs according to the given key and thinning expressions. This function allows for specialization of key and value types and is intended to use to form arrangement keys.