Skip to main content

GroupedJoinAdapter

Struct GroupedJoinAdapter 

Source
pub struct GroupedJoinAdapter<K, R, B>(/* private fields */);
Expand description

Adapts a (&K, &R, &B) weight to rows joining a grouped row (key K, result R) with a B entity.

Implementations§

Source§

impl<K, R, B> GroupedJoinAdapter<K, R, B>

Source

pub fn new() -> Self

Creates the adapter.

Trait Implementations§

Source§

impl<S, I, F, C, K, Acc, V, R, EB, P, B, W, Sc> AdaptWeight<S, JoinNode<S, GroupNode<I, F, C, K, Acc, V, R>, CollectionNode<S, EB>, P>, W, Sc> for GroupedJoinAdapter<K, R, B>
where S: 'static, I: Operator<S>, F: for<'a> Fn(&I::View<'a>) -> K + Send + Sync + 'static, C: for<'a> Collector<I::View<'a>, Value = V, Result = R, Accumulator = Acc> + 'static, K: Eq + Hash + Clone + Send + Sync + 'static, Acc: Accumulator<V, R> + 'static, V: Send + Sync + 'static, R: Send + Sync + 'static, B: Send + Sync + 'static, EB: CollectionExtract<S, Item = B> + 'static, for<'a> P: IndexedPlan + 'static + ExecutablePlan<GroupView<'a, S, I, K, Acc, V, R>, Leaf<'a, B>>, W: for<'a> ConstraintWeight<(&'a K, &'a R, &'a B), Sc> + Send + Sync, Sc: Score,

Source§

type RowWeight = GroupedJoinWeight<W>

The row weight produced from W.
Source§

fn adapt(&self, weight: W) -> Self::RowWeight

Wraps weight as a row weight.
Source§

fn is_hard(&self, weight: &W) -> bool

Reports whether weight marks the constraint hard.
Source§

impl<K, R, B> Default for GroupedJoinAdapter<K, R, B>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<K, R, B> Forget for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> Freeze for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> Move for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> RefUnwindSafe for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> Send for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> Sync for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> Unpin for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> UnsafeUnpin for GroupedJoinAdapter<K, R, B>

§

impl<K, R, B> UnwindSafe for GroupedJoinAdapter<K, R, B>

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.