pub struct AggregateRowPayload {
pub group: Option<GroupKey>,
pub value: AggregateValue,
}Expand description
Aggregate-result envelope. The executor postcard-encodes one
of these into each aggregate output ResultRow’s
payload (with origin = 0 and seq = SeqNum(0) as
sentinel-row markers; the group identifier lives in the
group field, not the row metadata, so the wire shape is
uniform across grouped + ungrouped queries).
Fields§
§group: Option<GroupKey>Group identifier. None when the query had no
group_by (single-bucket aggregate).
value: AggregateValuePhase E-1 ships Count only; future aggregate functions
(Sum, Avg, DistinctCountHll, PercentileTDigest)
land via additional variants on this enum.
Trait Implementations§
Source§impl Clone for AggregateRowPayload
impl Clone for AggregateRowPayload
Source§fn clone(&self) -> AggregateRowPayload
fn clone(&self) -> AggregateRowPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AggregateRowPayload
impl Debug for AggregateRowPayload
Source§impl<'de> Deserialize<'de> for AggregateRowPayload
impl<'de> Deserialize<'de> for AggregateRowPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AggregateRowPayload
impl PartialEq for AggregateRowPayload
Source§fn eq(&self, other: &AggregateRowPayload) -> bool
fn eq(&self, other: &AggregateRowPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AggregateRowPayload
impl Serialize for AggregateRowPayload
impl StructuralPartialEq for AggregateRowPayload
Auto Trait Implementations§
impl Freeze for AggregateRowPayload
impl RefUnwindSafe for AggregateRowPayload
impl Send for AggregateRowPayload
impl Sync for AggregateRowPayload
impl Unpin for AggregateRowPayload
impl UnsafeUnpin for AggregateRowPayload
impl UnwindSafe for AggregateRowPayload
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