pub struct KeyedWindowedStream<K>{ /* private fields */ }Expand description
Keyed stream with windowing
Implementations§
Source§impl<K> KeyedWindowedStream<K>
impl<K> KeyedWindowedStream<K>
Sourcepub fn aggregate<A>(self, aggregator: A) -> HashMap<K, Vec<AggregateResult>>where
A: Aggregation + Clone,
pub fn aggregate<A>(self, aggregator: A) -> HashMap<K, Vec<AggregateResult>>where
A: Aggregation + Clone,
Apply aggregation to each key’s window
Sourcepub fn reduce<F>(self, reducer: F) -> HashMap<K, Vec<StreamEvent>>
pub fn reduce<F>(self, reducer: F) -> HashMap<K, Vec<StreamEvent>>
Reduce events within each key’s window
Auto Trait Implementations§
impl<K> Freeze for KeyedWindowedStream<K>
impl<K> RefUnwindSafe for KeyedWindowedStream<K>where
K: RefUnwindSafe,
impl<K> Send for KeyedWindowedStream<K>where
K: Send,
impl<K> Sync for KeyedWindowedStream<K>where
K: Sync,
impl<K> Unpin for KeyedWindowedStream<K>where
K: Unpin,
impl<K> UnwindSafe for KeyedWindowedStream<K>where
K: UnwindSafe,
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