Struct rtlola_hir::hir::Window
source · pub struct Window<Aggr: WindowAggregation> {
pub target: StreamReference,
pub caller: StreamReference,
pub aggr: Aggr,
/* private fields */
}
Expand description
Represents an instance of a sliding or a discrete window aggregation
The generatic Aggr
defines if the instance is a slinding window or a discrete window.
The field aggr
contains the data that is specific for a discrete of sliding window.
The other data is used for a discrete and a sliding window.
Fields§
§target: StreamReference
The stream whose values will be aggregated
caller: StreamReference
The stream calling and evaluating this window
aggr: Aggr
The data that differentiates a sliding and a discrete window
This field can either has the type SlidingAggr or DiscreteAggr.
Implementations§
source§impl<A: WindowAggregation> Window<A>
impl<A: WindowAggregation> Window<A>
sourcepub fn reference(&self) -> WindowReference
pub fn reference(&self) -> WindowReference
Returns the reference of the window
Trait Implementations§
source§impl<Aggr: PartialEq + WindowAggregation> PartialEq<Window<Aggr>> for Window<Aggr>
impl<Aggr: PartialEq + WindowAggregation> PartialEq<Window<Aggr>> for Window<Aggr>
impl<Aggr: Copy + WindowAggregation> Copy for Window<Aggr>
impl<Aggr: Eq + WindowAggregation> Eq for Window<Aggr>
impl<Aggr: WindowAggregation> StructuralEq for Window<Aggr>
impl<Aggr: WindowAggregation> StructuralPartialEq for Window<Aggr>
Auto Trait Implementations§
impl<Aggr> RefUnwindSafe for Window<Aggr>where
Aggr: RefUnwindSafe,
impl<Aggr> Send for Window<Aggr>where
Aggr: Send,
impl<Aggr> Sync for Window<Aggr>where
Aggr: Sync,
impl<Aggr> Unpin for Window<Aggr>where
Aggr: Unpin,
impl<Aggr> UnwindSafe for Window<Aggr>where
Aggr: UnwindSafe,
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.