#[repr(i32)]pub enum AggregateFunction {
Show 36 variants
Min = 0,
Max = 1,
Sum = 2,
Avg = 3,
Count = 4,
ApproxDistinct = 5,
ArrayAgg = 6,
Variance = 7,
VariancePop = 8,
Covariance = 9,
CovariancePop = 10,
Stddev = 11,
StddevPop = 12,
Correlation = 13,
ApproxPercentileCont = 14,
ApproxMedian = 15,
ApproxPercentileContWithWeight = 16,
Grouping = 17,
Median = 18,
BitAnd = 19,
BitOr = 20,
BitXor = 21,
BoolAnd = 22,
BoolOr = 23,
FirstValueAgg = 24,
LastValueAgg = 25,
RegrSlope = 26,
RegrIntercept = 27,
RegrCount = 28,
RegrR2 = 29,
RegrAvgx = 30,
RegrAvgy = 31,
RegrSxx = 32,
RegrSyy = 33,
RegrSxy = 34,
StringAgg = 35,
}Variants§
Min = 0
Max = 1
Sum = 2
Avg = 3
Count = 4
ApproxDistinct = 5
ArrayAgg = 6
Variance = 7
VariancePop = 8
Covariance = 9
CovariancePop = 10
Stddev = 11
StddevPop = 12
Correlation = 13
ApproxPercentileCont = 14
ApproxMedian = 15
ApproxPercentileContWithWeight = 16
Grouping = 17
Median = 18
BitAnd = 19
BitOr = 20
BitXor = 21
BoolAnd = 22
BoolOr = 23
FirstValueAgg = 24
When a function with the same name exists among built-in window functions, we append “_AGG” to obey name scoping rules.
LastValueAgg = 25
RegrSlope = 26
RegrIntercept = 27
RegrCount = 28
RegrR2 = 29
RegrAvgx = 30
RegrAvgy = 31
RegrSxx = 32
RegrSyy = 33
RegrSxy = 34
StringAgg = 35
Implementations§
source§impl AggregateFunction
impl AggregateFunction
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for AggregateFunction
impl Clone for AggregateFunction
source§fn clone(&self) -> AggregateFunction
fn clone(&self) -> AggregateFunction
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 AggregateFunction
impl Debug for AggregateFunction
source§impl Default for AggregateFunction
impl Default for AggregateFunction
source§fn default() -> AggregateFunction
fn default() -> AggregateFunction
Returns the “default value” for a type. Read more
source§impl From<&AggregateFunction> for AggregateFunction
impl From<&AggregateFunction> for AggregateFunction
source§fn from(value: &AggregateFunction) -> Self
fn from(value: &AggregateFunction) -> Self
Converts to this type from the input type.
source§impl From<AggregateFunction> for AggregateFunction
impl From<AggregateFunction> for AggregateFunction
source§fn from(agg_fun: AggregateFunction) -> Self
fn from(agg_fun: AggregateFunction) -> Self
Converts to this type from the input type.
source§impl From<AggregateFunction> for i32
impl From<AggregateFunction> for i32
source§fn from(value: AggregateFunction) -> i32
fn from(value: AggregateFunction) -> i32
Converts to this type from the input type.
source§impl Hash for AggregateFunction
impl Hash for AggregateFunction
source§impl Ord for AggregateFunction
impl Ord for AggregateFunction
source§fn cmp(&self, other: &AggregateFunction) -> Ordering
fn cmp(&self, other: &AggregateFunction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AggregateFunction
impl PartialEq for AggregateFunction
source§fn eq(&self, other: &AggregateFunction) -> bool
fn eq(&self, other: &AggregateFunction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for AggregateFunction
impl PartialOrd for AggregateFunction
source§fn partial_cmp(&self, other: &AggregateFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &AggregateFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AggregateFunction
impl TryFrom<i32> for AggregateFunction
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<AggregateFunction, DecodeError>
fn try_from(value: i32) -> Result<AggregateFunction, DecodeError>
Performs the conversion.
impl Copy for AggregateFunction
impl Eq for AggregateFunction
impl StructuralEq for AggregateFunction
impl StructuralPartialEq for AggregateFunction
Auto Trait Implementations§
impl RefUnwindSafe for AggregateFunction
impl Send for AggregateFunction
impl Sync for AggregateFunction
impl Unpin 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
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.