pub struct MaxFunction { /* private fields */ }Expand description
MAX aggregate function
Returns the maximum value of all non-NULL values in the specified column. Works with any comparable type (numbers, strings, timestamps, etc.)
Trait Implementations§
Source§impl AggregateFunction for MaxFunction
impl AggregateFunction for MaxFunction
Source§fn info(&self) -> FunctionInfo
fn info(&self) -> FunctionInfo
Get function information
Source§fn accumulate(&mut self, value: &Value, _distinct: bool)
fn accumulate(&mut self, value: &Value, _distinct: bool)
Accumulate a value into the aggregate
Source§fn clone_box(&self) -> Box<dyn AggregateFunction>
fn clone_box(&self) -> Box<dyn AggregateFunction>
Clone the function into a new instance
Source§fn configure(&mut self, _options: &[Value])
fn configure(&mut self, _options: &[Value])
Configure the function with additional arguments Read more
Source§fn set_order_by(&mut self, _directions: Vec<bool>)
fn set_order_by(&mut self, _directions: Vec<bool>)
Configure ORDER BY for ordered-set aggregates like ARRAY_AGG, STRING_AGG Read more
Source§fn accumulate_with_sort_key(
&mut self,
value: &Value,
sort_keys: Vec<Value>,
distinct: bool,
)
fn accumulate_with_sort_key( &mut self, value: &Value, sort_keys: Vec<Value>, distinct: bool, )
Accumulate a value with sort keys for ordered aggregates Read more
Source§fn supports_order_by(&self) -> bool
fn supports_order_by(&self) -> bool
Check if this aggregate supports ORDER BY clause Read more
Source§impl Default for MaxFunction
impl Default for MaxFunction
Source§fn default() -> MaxFunction
fn default() -> MaxFunction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MaxFunction
impl RefUnwindSafe for MaxFunction
impl Send for MaxFunction
impl Sync for MaxFunction
impl Unpin for MaxFunction
impl UnsafeUnpin for MaxFunction
impl UnwindSafe for MaxFunction
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> CompactArcDrop for T
impl<T> CompactArcDrop for T
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