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
sourceimpl Clone for DiscreteAggr
impl Clone for DiscreteAggr
sourcefn clone(&self) -> DiscreteAggr
fn clone(&self) -> DiscreteAggr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DiscreteAggr
impl Debug for DiscreteAggr
sourceimpl PartialEq<DiscreteAggr> for DiscreteAggr
impl PartialEq<DiscreteAggr> for DiscreteAggr
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DiscreteAggr) -> bool
fn ne(&self, other: &DiscreteAggr) -> bool
This method tests for !=
.
sourceimpl WindowAggregation for DiscreteAggr
impl WindowAggregation for DiscreteAggr
sourcefn 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
sourcefn operation(&self) -> WindowOperation
fn operation(&self) -> WindowOperation
Returns the WindowOperation of the sliding or discrete window
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more