pub enum WindowType {
Tumbling(Duration),
Sliding(Duration, Duration),
Session(Duration),
Global,
}Expand description
Window type for stream processing
Variants§
Tumbling(Duration)
Tumbling window with fixed size
Sliding(Duration, Duration)
Sliding window with size and slide interval
Session(Duration)
Session window with gap timeout
Global
Global window, no window boundaries
Implementations§
Source§impl WindowType
impl WindowType
pub fn get_affected_windows(&self, timestamp: i64) -> Vec<i64>
pub fn get_window_keys(&self, timestamp: i64) -> Vec<u64>
Trait Implementations§
Source§impl Clone for WindowType
impl Clone for WindowType
Source§fn clone(&self) -> WindowType
fn clone(&self) -> WindowType
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 moreAuto Trait Implementations§
impl Freeze for WindowType
impl RefUnwindSafe for WindowType
impl Send for WindowType
impl Sync for WindowType
impl Unpin for WindowType
impl UnwindSafe for WindowType
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