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§
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