pub trait ChunkAgg<T> {
// Provided methods
fn sum(&self) -> Option<T> { ... }
fn min(&self) -> Option<T> { ... }
fn max(&self) -> Option<T> { ... }
fn min_max(&self) -> Option<(T, T)> { ... }
fn mean(&self) -> Option<f64> { ... }
}
Expand description
Aggregation operations.
Provided Methods§
sourcefn sum(&self) -> Option<T>
fn sum(&self) -> Option<T>
Aggregate the sum of the ChunkedArray.
Returns None
if not implemented for T
.
If the array is empty, 0
is returned
fn min(&self) -> Option<T>
sourcefn max(&self) -> Option<T>
fn max(&self) -> Option<T>
Returns the maximum value in the array, according to the natural order.
Returns None
if the array is empty or only contains null values.