pub struct Aggregate { /* private fields */ }Expand description
Reduces the rows of a relationship per parent, or of a whole query, to
an aggregate: one row per group key, {...groupKey, _0_value}, so a
Join routes it as it would the child rows.
count, sum and avg are kept in O(1) per change. min and max are too,
unless the extreme leaves; then the group is read again in reconcile.
Implementations§
Trait Implementations§
Source§impl Input for Aggregate
impl Input for Aggregate
fn set_output(&self, output: Weak<dyn Output>)
fn fetch(&self, req: &FetchRequest) -> NodeStream
Source§impl InputBase for Aggregate
impl InputBase for Aggregate
fn get_schema(&self) -> Rc<SourceSchema>
fn destroy(&self)
Source§impl Output for Aggregate
impl Output for Aggregate
fn push(&self, change: Change, _pusher: &dyn InputBase)
Source§fn reconcile(&self, _pusher: &dyn InputBase)
fn reconcile(&self, _pusher: &dyn InputBase)
Phase two. Sinks can ignore it; operators must forward it.
Source§fn has_reconcile(&self) -> bool
fn has_reconcile(&self) -> bool
Whether the output has a phase two: false for a sink whose JS
counterpart has no
reconcile, such as a view, which pushes timed
for the inspector skip (MeasurePushOperator).Auto Trait Implementations§
impl !Freeze for Aggregate
impl !RefUnwindSafe for Aggregate
impl !Send for Aggregate
impl !Sync for Aggregate
impl !UnwindSafe for Aggregate
impl Forget for Aggregate
impl Move for Aggregate
impl Unpin for Aggregate
impl UnsafeUnpin for Aggregate
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