pub enum AggFunc {
Count,
CountDistinct,
Sum,
SumDistinct,
Avg,
AvgDistinct,
Min,
Max,
Collect,
CollectDistinct,
PercentileDisc,
PercentileCont,
}Expand description
Aggregation function kind.
Variants§
Count
count(expr) or count(*).
CountDistinct
count(DISTINCT expr).
Sum
sum(expr).
SumDistinct
sum(DISTINCT expr).
Avg
avg(expr).
AvgDistinct
avg(DISTINCT expr).
Min
min(expr).
Max
max(expr).
Collect
collect(expr) — gathers values into a list.
CollectDistinct
collect(DISTINCT expr) — gathers distinct non-null values into a list.
PercentileDisc
percentileDisc(expr, percentile) — discrete percentile.
PercentileCont
percentileCont(expr, percentile) — continuous percentile.
Trait Implementations§
impl Copy for AggFunc
Source§impl<'de> Deserialize<'de> for AggFunc
impl<'de> Deserialize<'de> for AggFunc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AggFunc
impl StructuralPartialEq for AggFunc
Auto Trait Implementations§
impl Freeze for AggFunc
impl RefUnwindSafe for AggFunc
impl Send for AggFunc
impl Sync for AggFunc
impl Unpin for AggFunc
impl UnsafeUnpin for AggFunc
impl UnwindSafe for AggFunc
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.