[][src]Struct tantivy::query::Union

pub struct Union<TScorer, TScoreCombiner = DoNothingCombiner> { /* fields omitted */ }

Creates a DocSet that iterator through the intersection of two DocSets.

Trait Implementations

impl<TScorer, TScoreCombiner> Scorer for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: ScoreCombiner,
    TScorer: Scorer
[src]

fn for_each(&mut self, callback: &mut dyn FnMut(DocId, Score))[src]

Iterates through all of the document matched by the DocSet DocSet and push the scored documents to the collector. Read more

impl<TScorer, TScoreCombiner> DocSet for Union<TScorer, TScoreCombiner> where
    TScorer: Scorer,
    TScoreCombiner: ScoreCombiner, 
[src]

fn fill_buffer(&mut self, buffer: &mut [DocId]) -> usize[src]

Fills a given mutable buffer with the next doc ids from the DocSet Read more

fn append_to_bitset(&mut self, bitset: &mut BitSet)[src]

Appends all docs to a bitset.

fn count(&mut self, delete_bitset: &DeleteBitSet) -> u32[src]

Returns the number documents matching. Calling this method consumes the DocSet. Read more

impl<TScorer, TScoreCombiner> From<Vec<TScorer>> for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: ScoreCombiner,
    TScorer: Scorer
[src]

Auto Trait Implementations

impl<TScorer, TScoreCombiner> Send for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: Send,
    TScorer: Send

impl<TScorer, TScoreCombiner> Unpin for Union<TScorer, TScoreCombiner> where
    TScorer: Unpin

impl<TScorer, TScoreCombiner> Sync for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: Sync,
    TScorer: Sync

impl<TScorer, TScoreCombiner> UnwindSafe for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: UnwindSafe,
    TScorer: UnwindSafe

impl<TScorer, TScoreCombiner> RefUnwindSafe for Union<TScorer, TScoreCombiner> where
    TScoreCombiner: RefUnwindSafe,
    TScorer: RefUnwindSafe

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[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.

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

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

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

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]