pub trait WindowAssigner: Send + Sync {
type W: Clone + Debug + PartialEq + Eq + Hash + Send + Sync;
// Required methods
fn assign_windows(&self, timestamp: DateTime<Utc>) -> Vec<Self::W>;
fn default_trigger(&self) -> Box<dyn WindowTrigger<Self::W>>;
// Provided method
fn is_event_time(&self) -> bool { ... }
}Expand description
Trait for window assigners that assign elements to windows.
Window assigners determine which windows an element belongs to based on its timestamp or other properties.
Required Associated Types§
Required Methods§
Sourcefn default_trigger(&self) -> Box<dyn WindowTrigger<Self::W>>
fn default_trigger(&self) -> Box<dyn WindowTrigger<Self::W>>
Returns the default trigger for this assigner.
Provided Methods§
Sourcefn is_event_time(&self) -> bool
fn is_event_time(&self) -> bool
Returns true if this assigner produces event-time windows.