pub enum SetMonotonicity {
Increasing,
Decreasing,
NotMonotonic,
}
Expand description
Indicates whether an aggregation function is monotonic as a set
function. A set function is monotonically increasing if its value
increases as its argument grows (as a set). Formally, f
is a
monotonically increasing set function if f(S) >= f(T)
whenever S
is a superset of T
.
For example COUNT
and MAX
are monotonically increasing as their
values always increase (or stay the same) as new values are seen. On
the other hand, MIN
is monotonically decreasing as its value always
decreases or stays the same as new values are seen.
Variants§
Increasing
Aggregate value increases or stays the same as the input set grows.
Decreasing
Aggregate value decreases or stays the same as the input set grows.
NotMonotonic
Aggregate value may increase, decrease, or stay the same as the input set grows.
Trait Implementations§
Source§impl Clone for SetMonotonicity
impl Clone for SetMonotonicity
Source§fn clone(&self) -> SetMonotonicity
fn clone(&self) -> SetMonotonicity
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SetMonotonicity
impl Debug for SetMonotonicity
Source§impl PartialEq for SetMonotonicity
impl PartialEq for SetMonotonicity
impl StructuralPartialEq for SetMonotonicity
Auto Trait Implementations§
impl Freeze for SetMonotonicity
impl RefUnwindSafe for SetMonotonicity
impl Send for SetMonotonicity
impl Sync for SetMonotonicity
impl Unpin for SetMonotonicity
impl UnwindSafe for SetMonotonicity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more