Struct rtlola_hir::hir::DiscreteAggr
source · pub struct DiscreteAggr {
pub wait: bool,
pub op: WindowOperation,
pub duration: usize,
}
Expand description
Represents a discrete window aggregation
The struct contains all information that is specific for a discrete window aggregation. The data that is shared between a sliding window aggregation and a discrete window aggregation is stored a Window.
Fields§
§wait: bool
Flag to indicate whether or not the first aggregated value will be produced immediately or whether the window waits until duration
has passed at least once.
op: WindowOperation
The aggregation operation
duration: usize
The duration of the window
The duration of a discrete window is a discrete number of values.
Trait Implementations§
source§impl Clone for DiscreteAggr
impl Clone for DiscreteAggr
source§fn clone(&self) -> DiscreteAggr
fn clone(&self) -> DiscreteAggr
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 DiscreteAggr
impl Debug for DiscreteAggr
source§impl PartialEq<DiscreteAggr> for DiscreteAggr
impl PartialEq<DiscreteAggr> for DiscreteAggr
source§fn eq(&self, other: &DiscreteAggr) -> bool
fn eq(&self, other: &DiscreteAggr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl WindowAggregation for DiscreteAggr
impl WindowAggregation for DiscreteAggr
source§fn wait_until_full(&self) -> bool
fn wait_until_full(&self) -> bool
Returns wheter or not the first aggregated value will be produced immediately or wheter the window waits Read more
source§fn operation(&self) -> WindowOperation
fn operation(&self) -> WindowOperation
Returns the WindowOperation of the sliding or discrete window
impl Copy for DiscreteAggr
impl Eq for DiscreteAggr
impl StructuralEq for DiscreteAggr
impl StructuralPartialEq for DiscreteAggr
Auto Trait Implementations§
impl RefUnwindSafe for DiscreteAggr
impl Send for DiscreteAggr
impl Sync for DiscreteAggr
impl Unpin for DiscreteAggr
impl UnwindSafe for DiscreteAggr
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.