Struct rtlola_frontend::mir::SlidingWindow
source · pub struct SlidingWindow {
pub target: StreamReference,
pub caller: StreamReference,
pub duration: Duration,
pub wait: bool,
pub op: WindowOperation,
pub reference: WindowReference,
pub ty: Type,
}Expand description
Represents an instance of a sliding window
Fields§
§target: StreamReferenceThe stream whose values will be aggregated
caller: StreamReferenceThe stream in which expression this window occurs
duration: DurationThe duration over which the window aggregates
wait: boolIndicates whether or not the first aggregated value will be produced immediately or whether the window waits until duration has passed at least once
op: WindowOperationThe aggregation operation
reference: WindowReferenceA reference to this sliding window
ty: TypeThe type of value the window produces
Trait Implementations§
source§impl Clone for SlidingWindow
impl Clone for SlidingWindow
source§fn clone(&self) -> SlidingWindow
fn clone(&self) -> SlidingWindow
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 SlidingWindow
impl Debug for SlidingWindow
source§impl<'de> Deserialize<'de> for SlidingWindow
impl<'de> Deserialize<'de> for SlidingWindow
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SlidingWindow> for SlidingWindow
impl PartialEq<SlidingWindow> for SlidingWindow
source§fn eq(&self, other: &SlidingWindow) -> bool
fn eq(&self, other: &SlidingWindow) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SlidingWindow
impl Serialize for SlidingWindow
source§impl Window for SlidingWindow
impl Window for SlidingWindow
source§fn target(&self) -> StreamReference
fn target(&self) -> StreamReference
Returns a reference to the stream that will be aggregated by that window.
source§fn caller(&self) -> StreamReference
fn caller(&self) -> StreamReference
Returns a reference to the stream in which expression this window occurs.
source§fn op(&self) -> WindowOperation
fn op(&self) -> WindowOperation
Returns the aggregation operation the window uses.
impl Eq for SlidingWindow
impl StructuralEq for SlidingWindow
impl StructuralPartialEq for SlidingWindow
Auto Trait Implementations§
impl RefUnwindSafe for SlidingWindow
impl Send for SlidingWindow
impl Sync for SlidingWindow
impl Unpin for SlidingWindow
impl UnwindSafe for SlidingWindow
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.