[][src]Struct tsxlib::joins::JoinEngine

pub struct JoinEngine<'a, TIndex: Serialize + Hash + Clone + Eq + Ord> {
    pub idx_this: &'a HashableIndex<TIndex>,
    pub idx_other: &'a HashableIndex<TIndex>,
}

JoinEngine is responsible for join logic, it consists of two indicies. idx_this is the LHS and idx_other is the RHS. Indicies are passed by reference

Fields

idx_this: &'a HashableIndex<TIndex>idx_other: &'a HashableIndex<TIndex>

Implementations

impl<'a, TIndex: Serialize + Hash + Clone + Eq + Ord> JoinEngine<'a, TIndex>[src]

pub fn get_inner_hash_joined_indicies(&self) -> Vec<IndexJoinPair>[src]

Hash inner join

pub fn get_left_hash_joined_indicies(
    &self
) -> Vec<IndexJoinPotentiallyUnmatchedPair>
[src]

Hash join left. All left values are joined so no Option on the base index

pub fn get_left_merge_joined_indicies(
    &self
) -> Vec<IndexJoinPotentiallyUnmatchedPair>
[src]

Left Merge Join

pub fn get_inner_merge_joined_indicies(&self) -> Vec<IndexJoinPair>[src]

merge sort join join a and b.

pub fn get_asof_merge_joined_indicies(
    &self,
    compare_func: Option<Box<dyn Fn(&TIndex, &TIndex, &TIndex) -> (Ordering, i64)>>,
    other_idx_func: Option<Box<dyn Fn(usize) -> usize>>
) -> Vec<IndexJoinPotentiallyUnmatchedPair>
[src]

as of join. this is a variation of merge join that allows for indicies to be equal based on a custom comperator func

Auto Trait Implementations

impl<'a, TIndex> RefUnwindSafe for JoinEngine<'a, TIndex> where
    TIndex: RefUnwindSafe
[src]

impl<'a, TIndex> Send for JoinEngine<'a, TIndex> where
    TIndex: Sync
[src]

impl<'a, TIndex> Sync for JoinEngine<'a, TIndex> where
    TIndex: Sync
[src]

impl<'a, TIndex> Unpin for JoinEngine<'a, TIndex>[src]

impl<'a, TIndex> UnwindSafe for JoinEngine<'a, TIndex> where
    TIndex: RefUnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.