pub enum WindowType {
Tumbling {
size: Duration,
},
Sliding {
size: Duration,
slide: Duration,
},
Session {
gap: Duration,
},
Count {
size: usize,
},
Cumulative,
}Expand description
Window type for aggregations
Variants§
Tumbling
Fixed non-overlapping windows
Sliding
Overlapping windows with a slide interval
Session
Windows based on inactivity gaps
Count
Count-based windows (every N records)
Cumulative
Cumulative from start
Implementations§
Source§impl WindowType
impl WindowType
Sourcepub fn cumulative() -> Self
pub fn cumulative() -> Self
Create a cumulative window
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 (const: unstable) · 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 UnsafeUnpin 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