pub struct SlidingWindowAssigner { /* private fields */ }Expand description
Sliding window assigner that creates overlapping windows.
Each element may be assigned to multiple windows.
Implementations§
Source§impl SlidingWindowAssigner
impl SlidingWindowAssigner
Sourcepub fn with_offset(self, offset: Duration) -> Self
pub fn with_offset(self, offset: Duration) -> Self
Sets the offset for window alignment.
Trait Implementations§
Source§impl Clone for SlidingWindowAssigner
impl Clone for SlidingWindowAssigner
Source§fn clone(&self) -> SlidingWindowAssigner
fn clone(&self) -> SlidingWindowAssigner
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 SlidingWindowAssigner
impl Debug for SlidingWindowAssigner
Source§impl WindowAssigner for SlidingWindowAssigner
impl WindowAssigner for SlidingWindowAssigner
Source§type W = TimeWindow
type W = TimeWindow
The window type produced by this assigner.
Source§fn assign_windows(&self, timestamp: DateTime<Utc>) -> Vec<Self::W>
fn assign_windows(&self, timestamp: DateTime<Utc>) -> Vec<Self::W>
Assign an element to zero or more windows. Read more
Source§fn default_trigger(&self) -> Box<dyn WindowTrigger<Self::W>>
fn default_trigger(&self) -> Box<dyn WindowTrigger<Self::W>>
Returns the default trigger for this assigner.
Source§fn is_event_time(&self) -> bool
fn is_event_time(&self) -> bool
Returns true if this assigner produces event-time windows.
Auto Trait Implementations§
impl Freeze for SlidingWindowAssigner
impl RefUnwindSafe for SlidingWindowAssigner
impl Send for SlidingWindowAssigner
impl Sync for SlidingWindowAssigner
impl Unpin for SlidingWindowAssigner
impl UnwindSafe for SlidingWindowAssigner
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