pub struct DiscreteWindow {
pub target: StreamReference,
pub caller: StreamReference,
pub duration: usize,
pub wait: bool,
pub op: WindowOperation,
pub reference: WindowReference,
pub ty: Type,
pub origin: Origin,
pub pacing: PacingType,
}
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
origin: Origin
The origin of the discrete window expression
pacing: PacingType
The pacing of the discrete window expression
Trait Implementations§
Source§impl Clone for DiscreteWindow
impl Clone for DiscreteWindow
Source§fn clone(&self) -> DiscreteWindow
fn clone(&self) -> DiscreteWindow
Returns a duplicate 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 for DiscreteWindow
impl PartialEq for DiscreteWindow
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.
Source§fn memory_bound(&self) -> MemorizationBound
fn memory_bound(&self) -> MemorizationBound
Returns the memorization bound of the window.
impl Eq for DiscreteWindow
impl StructuralPartialEq for DiscreteWindow
Auto Trait Implementations§
impl Freeze for DiscreteWindow
impl RefUnwindSafe for DiscreteWindow
impl Send for DiscreteWindow
impl Sync for DiscreteWindow
impl Unpin for DiscreteWindow
impl UnwindSafe for DiscreteWindow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more