pub struct CountWindowAssigner { /* private fields */ }Expand description
Count-based tumbling window assigner.
Creates windows based on element count rather than time.
Implementations§
Trait Implementations§
Source§impl Clone for CountWindowAssigner
impl Clone for CountWindowAssigner
Source§impl Debug for CountWindowAssigner
impl Debug for CountWindowAssigner
Source§impl WindowAssigner for CountWindowAssigner
impl WindowAssigner for CountWindowAssigner
Source§type W = CountWindow
type W = CountWindow
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 CountWindowAssigner
impl RefUnwindSafe for CountWindowAssigner
impl Send for CountWindowAssigner
impl Sync for CountWindowAssigner
impl Unpin for CountWindowAssigner
impl UnwindSafe for CountWindowAssigner
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