pub struct BoundedOutOfOrdernessGenerator { /* private fields */ }Expand description
Generates watermarks allowing for bounded out-of-orderness.
The watermark is set to max_observed_timestamp - max_out_of_orderness.
This allows events to arrive slightly out of order while still making progress.
Implementations§
Trait Implementations§
Source§impl Clone for BoundedOutOfOrdernessGenerator
impl Clone for BoundedOutOfOrdernessGenerator
Source§fn clone(&self) -> BoundedOutOfOrdernessGenerator
fn clone(&self) -> BoundedOutOfOrdernessGenerator
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 WatermarkGenerator for BoundedOutOfOrdernessGenerator
impl WatermarkGenerator for BoundedOutOfOrdernessGenerator
Source§fn on_event(&mut self, timestamp: DateTime<Utc>) -> Option<Watermark>
fn on_event(&mut self, timestamp: DateTime<Utc>) -> Option<Watermark>
Called when a new element arrives with the given event timestamp.
Returns the new watermark if it should be emitted.
Source§fn on_periodic_emit(&mut self) -> Option<Watermark>
fn on_periodic_emit(&mut self) -> Option<Watermark>
Called periodically to generate watermarks even without new events.
Returns the new watermark if it should be emitted.
Source§fn current_watermark(&self) -> Watermark
fn current_watermark(&self) -> Watermark
Returns the current watermark without advancing it.
Source§fn on_end_of_stream(&mut self) -> Watermark
fn on_end_of_stream(&mut self) -> Watermark
Signals end of stream, generating the final watermark.
Auto Trait Implementations§
impl Freeze for BoundedOutOfOrdernessGenerator
impl RefUnwindSafe for BoundedOutOfOrdernessGenerator
impl Send for BoundedOutOfOrdernessGenerator
impl Sync for BoundedOutOfOrdernessGenerator
impl Unpin for BoundedOutOfOrdernessGenerator
impl UnwindSafe for BoundedOutOfOrdernessGenerator
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