pub struct GroupedQuery<R> { /* private fields */ }Expand description
A query grouped by columns, waiting for the aggregate that reduces each
group (GroupedQuery in packages/zql/src/query/query.ts): one
GroupRow per group.
Implementations§
Source§impl<R> GroupedQuery<R>
impl<R> GroupedQuery<R>
Sourcepub fn any(&self) -> &AnyGroupedQuery
pub fn any(&self) -> &AnyGroupedQuery
The untyped grouped query this one wraps.
Sourcepub fn sum<V: NumericZeroValue>(
self,
column: Column<R, V>,
) -> Grouped<R, Option<f64>>
pub fn sum<V: NumericZeroValue>( self, column: Column<R, V>, ) -> Grouped<R, Option<f64>>
Each group’s sum of column.
Sourcepub fn sum_json<V>(
self,
column: Column<R, V>,
path: Vec<JsonPathSegment>,
) -> Grouped<R, Option<f64>>
pub fn sum_json<V>( self, column: Column<R, V>, path: Vec<JsonPathSegment>, ) -> Grouped<R, Option<f64>>
Each group’s sum of the numbers at path in the JSON column.
Sourcepub fn avg<V: NumericZeroValue>(
self,
column: Column<R, V>,
) -> Grouped<R, Option<f64>>
pub fn avg<V: NumericZeroValue>( self, column: Column<R, V>, ) -> Grouped<R, Option<f64>>
Each group’s average of column.
Sourcepub fn avg_json<V>(
self,
column: Column<R, V>,
path: Vec<JsonPathSegment>,
) -> Grouped<R, Option<f64>>
pub fn avg_json<V>( self, column: Column<R, V>, path: Vec<JsonPathSegment>, ) -> Grouped<R, Option<f64>>
Each group’s average of the numbers at path in the JSON column.
Sourcepub fn min<V: OrderedZeroValue>(
self,
column: Column<R, V>,
) -> Grouped<R, Option<V::Unwrapped>>
pub fn min<V: OrderedZeroValue>( self, column: Column<R, V>, ) -> Grouped<R, Option<V::Unwrapped>>
Each group’s least value of column.
Sourcepub fn min_json<V>(
self,
column: Column<R, V>,
path: Vec<JsonPathSegment>,
) -> Grouped<R, Option<Value>>
pub fn min_json<V>( self, column: Column<R, V>, path: Vec<JsonPathSegment>, ) -> Grouped<R, Option<Value>>
Each group’s least value at path in the JSON column.
Auto Trait Implementations§
impl<R> Forget for GroupedQuery<R>
impl<R> Freeze for GroupedQuery<R>
impl<R> Move for GroupedQuery<R>
impl<R> RefUnwindSafe for GroupedQuery<R>
impl<R> Send for GroupedQuery<R>
impl<R> Sync for GroupedQuery<R>
impl<R> Unpin for GroupedQuery<R>
impl<R> UnsafeUnpin for GroupedQuery<R>
impl<R> UnwindSafe for GroupedQuery<R>
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