pub struct WindowSorter<T, F> { /* private fields */ }Expand description
sort_by operator for windowed stream.
Implementations§
Source§impl<T, F> WindowSorter<T, F>
impl<T, F> WindowSorter<T, F>
pub fn new(window_config: WindowConfig, f: F) -> Self
Trait Implementations§
Source§impl<T, F> Operator<T, Vec<T>> for WindowSorter<T, F>
impl<T, F> Operator<T, Vec<T>> for WindowSorter<T, F>
Source§fn process<'life0, 'async_trait>(
&'life0 mut self,
record: Record<T>,
) -> Pin<Box<dyn Future<Output = StreamResult<Vec<Record<Vec<T>>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process<'life0, 'async_trait>(
&'life0 mut self,
record: Record<T>,
) -> Pin<Box<dyn Future<Output = StreamResult<Vec<Record<Vec<T>>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a single record and return zero or more output records
Source§fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Initialize the operator
Auto Trait Implementations§
impl<T, F> !RefUnwindSafe for WindowSorter<T, F>
impl<T, F> !UnwindSafe for WindowSorter<T, F>
impl<T, F> Freeze for WindowSorter<T, F>where
F: Freeze,
impl<T, F> Send for WindowSorter<T, F>
impl<T, F> Sync for WindowSorter<T, F>
impl<T, F> Unpin for WindowSorter<T, F>
impl<T, F> UnsafeUnpin for WindowSorter<T, F>where
F: UnsafeUnpin,
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