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