pub struct GroupBy { /* private fields */ }Expand description
Groups its input by columns and reduces each group, as GROUP BY does:
one row per combination of the columns’ values,
{...columns, _0_key, _0_value}, with a sum or average’s components. A
distinct is a GroupBy with a count, whose value a view doesn’t show.
The input is sorted by the group columns first, so a fetch folds each
run of a group in one pass. Every group’s state is kept: a push adds a
group with its first row, removes it with its last, and otherwise edits
it when its value changes. A min or max whose extreme leaves is read
again in reconcile, as in Aggregate.
Implementations§
Trait Implementations§
Source§impl Input for GroupBy
impl Input for GroupBy
fn set_output(&self, output: Weak<dyn Output>)
fn fetch(&self, req: &FetchRequest) -> NodeStream
Source§impl InputBase for GroupBy
impl InputBase for GroupBy
fn get_schema(&self) -> Rc<SourceSchema>
fn destroy(&self)
Source§impl Output for GroupBy
impl Output for GroupBy
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 GroupBy
impl !RefUnwindSafe for GroupBy
impl !Send for GroupBy
impl !Sync for GroupBy
impl !UnwindSafe for GroupBy
impl Forget for GroupBy
impl Move for GroupBy
impl Unpin for GroupBy
impl UnsafeUnpin for GroupBy
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