Struct rtlola_frontend::mir::DiscreteWindow
source · pub struct DiscreteWindow {
pub target: StreamReference,
pub caller: StreamReference,
pub duration: usize,
pub wait: bool,
pub op: WindowOperation,
pub reference: WindowReference,
pub ty: Type,
}
Expand description
Represents an instance of a discrete window
Fields§
§target: StreamReference
The stream whose values will be aggregated
caller: StreamReference
The stream in which expression this window occurs
duration: usize
The duration over which the window aggregates
wait: bool
Indicates whether or not the first aggregated value will be produced immediately or whether the window waits until duration
number of values have been observed.
op: WindowOperation
The aggregation operation
reference: WindowReference
A reference to this discrete window
ty: Type
The type of value the window produces
Trait Implementations§
source§impl Clone for DiscreteWindow
impl Clone for DiscreteWindow
source§fn clone(&self) -> DiscreteWindow
fn clone(&self) -> DiscreteWindow
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 DiscreteWindow
impl Debug for DiscreteWindow
source§impl<'de> Deserialize<'de> for DiscreteWindow
impl<'de> Deserialize<'de> for DiscreteWindow
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<DiscreteWindow> for DiscreteWindow
impl PartialEq<DiscreteWindow> for DiscreteWindow
source§fn eq(&self, other: &DiscreteWindow) -> bool
fn eq(&self, other: &DiscreteWindow) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DiscreteWindow
impl Serialize for DiscreteWindow
source§impl Window for DiscreteWindow
impl Window for DiscreteWindow
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 DiscreteWindow
impl StructuralEq for DiscreteWindow
impl StructuralPartialEq for DiscreteWindow
Auto Trait Implementations§
impl RefUnwindSafe for DiscreteWindow
impl Send for DiscreteWindow
impl Sync for DiscreteWindow
impl Unpin for DiscreteWindow
impl UnwindSafe for DiscreteWindow
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.