pub struct WindowTimestampSorter<T> { /* private fields */ }Expand description
sort_by_ts operator for windowed stream.
Implementations§
Source§impl<T> WindowTimestampSorter<T>
impl<T> WindowTimestampSorter<T>
pub fn new(window_config: WindowConfig, method: SortOrder) -> Self
Trait Implementations§
Source§impl<T> Operator<T, Vec<T>> for WindowTimestampSorter<T>
impl<T> Operator<T, Vec<T>> for WindowTimestampSorter<T>
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> Freeze for WindowTimestampSorter<T>
impl<T> !RefUnwindSafe for WindowTimestampSorter<T>
impl<T> Send for WindowTimestampSorter<T>
impl<T> Sync for WindowTimestampSorter<T>
impl<T> Unpin for WindowTimestampSorter<T>where
T: Unpin,
impl<T> !UnwindSafe for WindowTimestampSorter<T>
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