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
sourceimpl<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
sourceimpl<Aggr: Clone + WindowAggregation> Clone for Window<Aggr>
impl<Aggr: Clone + WindowAggregation> Clone for Window<Aggr>
sourceimpl<Aggr: Debug + WindowAggregation> Debug for Window<Aggr>
impl<Aggr: Debug + WindowAggregation> Debug 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
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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