pub struct AggregateOperator {
pub source: Option<Arc<dyn Operator>>,
pub field: String,
pub monoid: Arc<dyn AggregationMonoid>,
}Expand description
Apply a monoid over a single field across the rows the source
operator produces. Emits a one-entry posting list whose payload
carries _aggregate_field / _aggregate so downstream callers
can pick the result by name.
Fields§
§source: Option<Arc<dyn Operator>>§field: String§monoid: Arc<dyn AggregationMonoid>Implementations§
Trait Implementations§
Source§impl Operator for AggregateOperator
impl Operator for AggregateOperator
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult
fn cost_estimate(&self, stats: &IndexStats) -> f64
Auto Trait Implementations§
impl !RefUnwindSafe for AggregateOperator
impl !UnwindSafe for AggregateOperator
impl Freeze for AggregateOperator
impl Send for AggregateOperator
impl Sync for AggregateOperator
impl Unpin for AggregateOperator
impl UnsafeUnpin for AggregateOperator
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