pub enum WindowingStrategy {
TumblingTime {
duration: Duration,
},
SlidingTime {
duration: Duration,
slide: Duration,
},
TumblingCount {
count: usize,
},
SlidingCount {
size: usize,
step: usize,
},
Session {
gap: Duration,
},
Custom {
trigger_fn: Box<dyn Fn(&[StreamDataPoint]) -> bool + Send + Sync>,
},
}Expand description
Windowing strategy for stream processing
Variants§
TumblingTime
Fixed time windows
SlidingTime
Sliding time windows
TumblingCount
Fixed count windows
SlidingCount
Sliding count windows
Session
Session windows (gap-based)
Custom
Custom windowing
Auto Trait Implementations§
impl Freeze for WindowingStrategy
impl !RefUnwindSafe for WindowingStrategy
impl Send for WindowingStrategy
impl Sync for WindowingStrategy
impl Unpin for WindowingStrategy
impl !UnwindSafe for WindowingStrategy
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> 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