pub enum AggregateOp {
Sum,
Mean,
Median,
Min,
Max,
Count,
}Expand description
Represents the statistical aggregation operations available for data transformation.
This enum defines how multiple data points are collapsed into a single value during the transformation phase. It is used both in simple aggregations and complex window functions.
Variants§
Sum
Total sum of all valid (non-null) values in the group.
Mean
Arithmetic mean (average). Result is NaN if all values are null.
Median
The middle value. Requires a partial sort of the group data.
Min
The smallest value in the group.
Max
The largest value in the group.
Count
The total count of records (including or excluding nulls, based on implementation).
Implementations§
Source§impl AggregateOp
impl AggregateOp
Sourcepub fn aggregate_by_index(&self, col: &ColumnVector, indices: &[usize]) -> f64
pub fn aggregate_by_index(&self, col: &ColumnVector, indices: &[usize]) -> f64
Native aggregation logic: Extracting and aggregating data from columns based on indices.
This method performs statistical calculations directly on the provided ColumnVector using only the specified row indices.
Trait Implementations§
Source§impl Clone for AggregateOp
impl Clone for AggregateOp
Source§fn clone(&self) -> AggregateOp
fn clone(&self) -> AggregateOp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AggregateOp
impl Debug for AggregateOp
Source§impl Default for AggregateOp
impl Default for AggregateOp
Source§fn default() -> AggregateOp
fn default() -> AggregateOp
Source§impl From<&str> for AggregateOp
impl From<&str> for AggregateOp
Source§impl PartialEq for AggregateOp
impl PartialEq for AggregateOp
impl Copy for AggregateOp
impl Eq for AggregateOp
impl StructuralPartialEq for AggregateOp
Auto Trait Implementations§
impl Freeze for AggregateOp
impl RefUnwindSafe for AggregateOp
impl Send for AggregateOp
impl Sync for AggregateOp
impl Unpin for AggregateOp
impl UnsafeUnpin for AggregateOp
impl UnwindSafe for AggregateOp
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<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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.