pub enum AggregateFunction {
Show 27 variants
Count,
CountNonNull,
Sum,
Avg,
Min,
Max,
Collect,
StdDev,
StdDevPop,
Variance,
VariancePop,
PercentileDisc,
PercentileCont,
GroupConcat,
Sample,
CovarSamp,
CovarPop,
Corr,
RegrSlope,
RegrIntercept,
RegrR2,
RegrCount,
RegrSxx,
RegrSyy,
RegrSxy,
RegrAvgx,
RegrAvgy,
}Expand description
Aggregate function.
Variants§
Count
Count all rows (COUNT(*)).
CountNonNull
Count non-null values (COUNT(expr)).
Sum
Sum values.
Avg
Average values.
Min
Minimum value.
Max
Maximum value.
Collect
Collect into list.
StdDev
Sample standard deviation (STDEV).
StdDevPop
Population standard deviation (STDEVP).
Variance
Sample variance (VAR_SAMP / VARIANCE).
VariancePop
Population variance (VAR_POP).
PercentileDisc
Discrete percentile (PERCENTILE_DISC).
PercentileCont
Continuous percentile (PERCENTILE_CONT).
GroupConcat
Concatenate values with separator (GROUP_CONCAT).
Sample
Return an arbitrary value from the group (SAMPLE).
CovarSamp
Sample covariance (COVAR_SAMP(y, x)).
CovarPop
Population covariance (COVAR_POP(y, x)).
Corr
Pearson correlation coefficient (CORR(y, x)).
RegrSlope
Regression slope (REGR_SLOPE(y, x)).
RegrIntercept
Regression intercept (REGR_INTERCEPT(y, x)).
RegrR2
Coefficient of determination (REGR_R2(y, x)).
RegrCount
Regression count of non-null pairs (REGR_COUNT(y, x)).
RegrSxx
Regression sum of squares for x (REGR_SXX(y, x)).
RegrSyy
Regression sum of squares for y (REGR_SYY(y, x)).
RegrSxy
Regression sum of cross-products (REGR_SXY(y, x)).
RegrAvgx
Regression average of x (REGR_AVGX(y, x)).
RegrAvgy
Regression average of y (REGR_AVGY(y, x)).
Trait Implementations§
Source§impl Clone for AggregateFunction
impl Clone for AggregateFunction
Source§fn clone(&self) -> AggregateFunction
fn clone(&self) -> AggregateFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AggregateFunction
impl Debug for AggregateFunction
Source§impl PartialEq for AggregateFunction
impl PartialEq for AggregateFunction
impl Copy for AggregateFunction
impl Eq for AggregateFunction
impl StructuralPartialEq for AggregateFunction
Auto Trait Implementations§
impl Freeze for AggregateFunction
impl RefUnwindSafe for AggregateFunction
impl Send for AggregateFunction
impl Sync for AggregateFunction
impl Unpin for AggregateFunction
impl UnsafeUnpin for AggregateFunction
impl UnwindSafe for AggregateFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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