pub struct LateDataHandler { /* private fields */ }Expand description
Handler for late data events
Implementations§
Source§impl LateDataHandler
impl LateDataHandler
Sourcepub fn new(strategy: LateDataStrategy) -> Self
pub fn new(strategy: LateDataStrategy) -> Self
Create a new late data handler with the given strategy
Sourcepub fn handle_late_event(
&mut self,
event: StreamEvent,
watermark: &Watermark,
) -> LateEventDecision
pub fn handle_late_event( &mut self, event: StreamEvent, watermark: &Watermark, ) -> LateEventDecision
Handle a late event according to the strategy
Sourcepub fn side_output(&self) -> &[StreamEvent]
pub fn side_output(&self) -> &[StreamEvent]
Get the side output events
Sourcepub fn clear_side_output(&mut self)
pub fn clear_side_output(&mut self)
Clear the side output
Sourcepub fn stats(&self) -> LateDataStats
pub fn stats(&self) -> LateDataStats
Get statistics about late events
Auto Trait Implementations§
impl Freeze for LateDataHandler
impl RefUnwindSafe for LateDataHandler
impl Send for LateDataHandler
impl Sync for LateDataHandler
impl Unpin for LateDataHandler
impl UnwindSafe for LateDataHandler
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