pub trait WindowAssigner: Send {
// Required method
fn assign_windows(&self, timestamp: i64) -> WindowIdVec;
// Provided method
fn max_timestamp(&self, window_end: i64) -> i64 { ... }
}Expand description
Trait for assigning events to windows.
Required Methods§
Sourcefn assign_windows(&self, timestamp: i64) -> WindowIdVec
fn assign_windows(&self, timestamp: i64) -> WindowIdVec
Assigns a timestamp to one or more windows.
Provided Methods§
Sourcefn max_timestamp(&self, window_end: i64) -> i64
fn max_timestamp(&self, window_end: i64) -> i64
Maximum timestamp assignable to a window ending at window_end.