Enum dataflow_types::plan::reduce::ReductionType [−][src]
pub enum ReductionType {
Accumulable,
Hierarchical,
Basic,
}
Expand description
This enum represents the three potential types of aggregations.
Variants
Accumulable
Accumulable functions can be subtracted from (are invertible), and associative. We can compute these results by moving some data to the diff field under arbitrary changes to inputs. Examples include sum or count.
Hierarchical
Hierarchical functions are associative, which means we can split up the work of computing them across subsets. Note that hierarchical reductions should also reduce the data in some way, as otherwise rendering them hierarchically is not worth it. Examples include min or max.
Basic
Basic, for lack of a better word, are functions that are neither accumulable nor hierarchical. Examples include jsonb_agg.
Trait Implementations
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReductionType
impl Send for ReductionType
impl Sync for ReductionType
impl Unpin for ReductionType
impl UnwindSafe for ReductionType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more