pub enum Reducer {
Count,
Max,
Mean,
Median,
Min,
Std,
Sum,
}Expand description
The closed reducer vocabulary of the first reduce stage.
Reducers that can observe an empty stream (max, min, mean,
median, std) are admitted only under group bindings, where every
group is witnessed by at least one row; count and sum stay total on
empty streams.
Variants§
Count
Count surviving rows.
Max
The largest input value.
Mean
The arithmetic mean of input values.
Median
The statistical median of input values.
Min
The smallest input value.
Std
The sample standard deviation of input values.
Sum
The total of input values.
Implementations§
Source§impl Reducer
impl Reducer
Sourcepub const fn total_without_groups(self) -> bool
pub const fn total_without_groups(self) -> bool
Whether this reducer yields a defined result on an empty stream.
Sourcepub const fn requires_input(self) -> bool
pub const fn requires_input(self) -> bool
Whether this reducer consumes an input binding.
Trait Implementations§
impl Copy for Reducer
impl Eq for Reducer
impl StructuralPartialEq for Reducer
Auto Trait Implementations§
impl Freeze for Reducer
impl RefUnwindSafe for Reducer
impl Send for Reducer
impl Sync for Reducer
impl Unpin for Reducer
impl UnsafeUnpin for Reducer
impl UnwindSafe for Reducer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more