pub struct SlidingWindow {
pub target: StreamReference,
pub caller: StreamReference,
pub duration: Duration,
pub num_buckets: MemorizationBound,
pub bucket_size: Duration,
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 sliding window
Fields§
§target: StreamReference
The stream whose values will be aggregated
caller: StreamReference
The stream in which expression this window occurs
duration: Duration
The duration over which the window aggregates
num_buckets: MemorizationBound
The number of buckets that are needed for the window
bucket_size: Duration
The time per bucket of the window
wait: bool
Indicates whether or not the first aggregated value will be produced immediately or whether the window waits until duration
has passed at least once
op: WindowOperation
The aggregation operation
reference: WindowReference
A reference to this sliding window
ty: Type
The type of value the window produces
origin: Origin
The origin of the sliding window expression
pacing: PacingType
The pacing of the sliding window expression
Trait Implementations§
Source§impl Clone for SlidingWindow
impl Clone for SlidingWindow
Source§fn clone(&self) -> SlidingWindow
fn clone(&self) -> SlidingWindow
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 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 for SlidingWindow
impl PartialEq for SlidingWindow
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.
Source§fn memory_bound(&self) -> MemorizationBound
fn memory_bound(&self) -> MemorizationBound
Returns the memorization bound of the window.
impl Eq for SlidingWindow
impl StructuralPartialEq for SlidingWindow
Auto Trait Implementations§
impl Freeze for SlidingWindow
impl RefUnwindSafe for SlidingWindow
impl Send for SlidingWindow
impl Sync for SlidingWindow
impl Unpin for SlidingWindow
impl UnwindSafe for SlidingWindow
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