pub struct OperatorBuilder;Expand description
Builder for creating stream operators
Implementations§
Source§impl OperatorBuilder
impl OperatorBuilder
Sourcepub fn map<In, Out, F>(func: F) -> MapOperator<In, Out, F>
pub fn map<In, Out, F>(func: F) -> MapOperator<In, Out, F>
Create a new map operator
Sourcepub fn filter<T, F>(predicate: F) -> FilterOperator<T, F>
pub fn filter<T, F>(predicate: F) -> FilterOperator<T, F>
Create a new filter operator
Sourcepub fn window_reduce<T, F>(
func: F,
window: WindowConfig,
) -> WindowReduceOperator<T, F>
pub fn window_reduce<T, F>( func: F, window: WindowConfig, ) -> WindowReduceOperator<T, F>
Create a new window reduce operator
Sourcepub fn sum_window<T>(
window: WindowConfig,
) -> WindowReduceOperator<T, impl Fn(T, T) -> T>
pub fn sum_window<T>( window: WindowConfig, ) -> WindowReduceOperator<T, impl Fn(T, T) -> T>
Helper to create a sum operator with a window
Sourcepub fn count_window(
window: WindowConfig,
) -> WindowReduceOperator<usize, impl Fn(usize, usize) -> usize>
pub fn count_window( window: WindowConfig, ) -> WindowReduceOperator<usize, impl Fn(usize, usize) -> usize>
Helper to create a count operator with a window
Sourcepub fn avg_window<T>(
window: WindowConfig,
) -> WindowReduceOperator<(T, usize), Box<dyn Fn((T, usize), (T, usize)) -> (T, usize) + Send + Sync>>
pub fn avg_window<T>( window: WindowConfig, ) -> WindowReduceOperator<(T, usize), Box<dyn Fn((T, usize), (T, usize)) -> (T, usize) + Send + Sync>>
Helper to create an average operator with a window
Auto Trait Implementations§
impl Freeze for OperatorBuilder
impl RefUnwindSafe for OperatorBuilder
impl Send for OperatorBuilder
impl Sync for OperatorBuilder
impl Unpin for OperatorBuilder
impl UnwindSafe for OperatorBuilder
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