arrow_arith::aggregate

Function min_max_view_helper

Source
fn min_max_view_helper<T: ByteViewType>(
    array: &GenericByteViewArray<T>,
    swap_cond: Ordering,
) -> Option<&T::Native>
Expand description

Helper to compute min/max of [GenericByteViewArray<T>]. The specialized min/max leverages the inlined values to compare the byte views. swap_cond is the condition to swap current min/max with the new value. For example, Ordering::Greater for max and Ordering::Less for min.