pub struct AggregateRel {
pub common: Option<RelCommon>,
pub input: Option<Box<Rel>>,
pub groupings: Vec<Grouping>,
pub measures: Vec<Measure>,
pub grouping_expressions: Vec<Expression>,
pub advanced_extension: Option<AdvancedExtension>,
}
Expand description
The relational operator representing a GROUP BY Aggregate
Fields§
§common: Option<RelCommon>
§input: Option<Box<Rel>>
Input of the aggregation
groupings: Vec<Grouping>
A list of zero or more grouping sets that the aggregation measures should be calculated for. There must be at least one grouping set if there are no measures (but it can be the empty grouping set).
measures: Vec<Measure>
A list of one or more aggregate expressions along with an optional filter. Required if there are no groupings.
grouping_expressions: Vec<Expression>
A list of zero or more grouping expressions that grouping sets (i.e.,
Grouping
messages in the groupings
field) can reference. Each
expression in this list must be referred to by at least one
Grouping.expression_references
.
advanced_extension: Option<AdvancedExtension>
Trait Implementations§
Source§impl Clone for AggregateRel
impl Clone for AggregateRel
Source§fn clone(&self) -> AggregateRel
fn clone(&self) -> AggregateRel
Returns a copy of the value. Read more
1.0.0 · 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 AggregateRel
impl Debug for AggregateRel
Source§impl Default for AggregateRel
impl Default for AggregateRel
§impl<'de> Deserialize<'de> for AggregateRel
impl<'de> Deserialize<'de> for AggregateRel
§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 Message for AggregateRel
impl Message for AggregateRel
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for AggregateRel
impl PartialEq for AggregateRel
§impl Serialize for AggregateRel
impl Serialize for AggregateRel
impl StructuralPartialEq for AggregateRel
Auto Trait Implementations§
impl !Freeze for AggregateRel
impl RefUnwindSafe for AggregateRel
impl Send for AggregateRel
impl Sync for AggregateRel
impl Unpin for AggregateRel
impl UnwindSafe for AggregateRel
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