pub struct NumericAggregation { /* private fields */ }Expand description
Aggregates an input series using the given operator. The shape of the aggregation (rolling time window,
rolling point-count window, or group by) is selected via the AggregationBuilder union.
The operator needs to be compatible with the input series, producing a numeric output (e.g., count works for
any type of input series whereas SUM only works for numeric series).
Implementations§
Source§impl NumericAggregation
impl NumericAggregation
Sourcepub fn builder() -> Builder<InputStage>
pub fn builder() -> Builder<InputStage>
Returns a new builder.
Source§impl NumericAggregation
impl NumericAggregation
Sourcepub fn new(
input: AggregationBuilder,
operator: NumericAggregationOperator,
) -> Self
pub fn new( input: AggregationBuilder, operator: NumericAggregationOperator, ) -> Self
Constructs a new instance of the type.
Sourcepub fn input(&self) -> &AggregationBuilder
pub fn input(&self) -> &AggregationBuilder
The aggregation shape to apply the operator over: a rolling time window, a rolling
point-count window, or a group-by, selected via the AggregationBuilder union.
Sourcepub fn operator(&self) -> &NumericAggregationOperator
pub fn operator(&self) -> &NumericAggregationOperator
The reduction applied to each window or group (e.g. sum, mean, percentile). Must be compatible with the input series, producing a numeric output: Count works on any input series, whereas reductions like Sum require a numeric series.
Trait Implementations§
Source§impl Clone for NumericAggregation
impl Clone for NumericAggregation
Source§fn clone(&self) -> NumericAggregation
fn clone(&self) -> NumericAggregation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NumericAggregation
impl Debug for NumericAggregation
Source§impl<'de> Deserialize<'de> for NumericAggregation
impl<'de> Deserialize<'de> for NumericAggregation
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>,
impl Eq for NumericAggregation
Source§impl From<NumericAggregation> for Builder<Complete>
impl From<NumericAggregation> for Builder<Complete>
Source§fn from(v: NumericAggregation) -> Self
fn from(v: NumericAggregation) -> Self
Source§impl Hash for NumericAggregation
impl Hash for NumericAggregation
Source§impl Ord for NumericAggregation
impl Ord for NumericAggregation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NumericAggregation
impl PartialEq for NumericAggregation
Source§impl PartialOrd for NumericAggregation
impl PartialOrd for NumericAggregation
Auto Trait Implementations§
impl Freeze for NumericAggregation
impl RefUnwindSafe for NumericAggregation
impl Send for NumericAggregation
impl Sync for NumericAggregation
impl Unpin for NumericAggregation
impl UnsafeUnpin for NumericAggregation
impl UnwindSafe for NumericAggregation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.