Skip to main content

JoinedGroupedStream

Struct JoinedGroupedStream 

Source
pub struct JoinedGroupedStream<S, O, F, C, K, V, R, Acc: Accumulator<V, R>, Sc> { /* private fields */ }
Expand description

Grouped joined rows, backed by the common grouping operator.

Implementations§

Source§

impl<S, O, F, C, K, V, R, Acc, Sc> JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where S: Send + Sync + 'static, O: Operator<S> + Send + Sync, F: for<'a> Fn(&O::View<'a>) -> K + Send + Sync + 'static, C: for<'a> Collector<O::View<'a>, Value = V, Result = R, Accumulator = Acc> + 'static, K: Eq + Hash + Clone + Send + Sync + 'static, V: Send + Sync + 'static, R: Send + Sync + 'static, Acc: Accumulator<V, R> + 'static, Sc: Score + 'static,

Source

pub fn penalize<W>( self, weight: W, ) -> JoinedGroupedBuilder<S, O, F, C, K, V, R, Acc, impl Fn(&K, &R) -> Sc + Send + Sync, Sc>
where W: for<'a> ConstraintWeight<(&'a K, &'a R), Sc> + Send + Sync,

Penalizes each group using its key and borrowed collector result.

Source

pub fn reward<W>( self, weight: W, ) -> JoinedGroupedBuilder<S, O, F, C, K, V, R, Acc, impl Fn(&K, &R) -> Sc + Send + Sync, Sc>
where W: for<'a> ConstraintWeight<(&'a K, &'a R), Sc> + Send + Sync,

Rewards each group using its key and borrowed collector result.

Auto Trait Implementations§

§

impl<S, O, F, C, K, V, R, Acc, Sc> Freeze for JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where GroupNode<O, F, C, K, Acc, V, R>: Freeze, PhantomData<fn() -> (S, Sc)>: Freeze,

§

impl<S, O, F, C, K, V, R, Acc, Sc> RefUnwindSafe for JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where GroupNode<O, F, C, K, Acc, V, R>: RefUnwindSafe, PhantomData<fn() -> (S, Sc)>: RefUnwindSafe,

§

impl<S, O, F, C, K, V, R, Acc, Sc> Send for JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where GroupNode<O, F, C, K, Acc, V, R>: Send, PhantomData<fn() -> (S, Sc)>: Send,

§

impl<S, O, F, C, K, V, R, Acc, Sc> Sync for JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where GroupNode<O, F, C, K, Acc, V, R>: Sync, PhantomData<fn() -> (S, Sc)>: Sync,

§

impl<S, O, F, C, K, V, R, Acc, Sc> Unpin for JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where GroupNode<O, F, C, K, Acc, V, R>: Unpin, PhantomData<fn() -> (S, Sc)>: Unpin,

§

impl<S, O, F, C, K, V, R, Acc, Sc> UnsafeUnpin for JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where GroupNode<O, F, C, K, Acc, V, R>: UnsafeUnpin, PhantomData<fn() -> (S, Sc)>: UnsafeUnpin,

§

impl<S, O, F, C, K, V, R, Acc, Sc> UnwindSafe for JoinedGroupedStream<S, O, F, C, K, V, R, Acc, Sc>
where GroupNode<O, F, C, K, Acc, V, R>: UnwindSafe, PhantomData<fn() -> (S, Sc)>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.