pub struct HashAggregateOperator { /* private fields */ }Expand description
Hash-based aggregate operator.
Groups input by key columns and computes aggregations for each group.
Implementations§
Source§impl HashAggregateOperator
impl HashAggregateOperator
Sourcepub fn new(
child: Box<dyn Operator>,
group_columns: Vec<usize>,
aggregates: Vec<AggregateExpr>,
output_schema: Vec<LogicalType>,
) -> Self
pub fn new( child: Box<dyn Operator>, group_columns: Vec<usize>, aggregates: Vec<AggregateExpr>, output_schema: Vec<LogicalType>, ) -> Self
Creates a new hash aggregate operator.
§Arguments
child- Child operator to read from.group_columns- Column indices to group by.aggregates- Aggregation expressions.output_schema- Schema of the output (group columns + aggregate results).
Trait Implementations§
Source§impl Operator for HashAggregateOperator
impl Operator for HashAggregateOperator
Auto Trait Implementations§
impl Freeze for HashAggregateOperator
impl !RefUnwindSafe for HashAggregateOperator
impl Send for HashAggregateOperator
impl Sync for HashAggregateOperator
impl Unpin for HashAggregateOperator
impl !UnwindSafe for HashAggregateOperator
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> 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