Struct tantivy::query::Intersection
[−]
[src]
pub struct Intersection<TDocSet: DocSet> { /* fields omitted */ }
Creates a DocSet
that iterator through the intersection of two DocSet
s.
Methods
impl<TDocSet: DocSet> Intersection<TDocSet>
[src]
pub fn docsets(&self) -> &[TDocSet]
[src]
Returns an array to the underlying DocSet
s of the intersection.
These DocSet
are in the same position as the IntersectionDocSet
,
so that user can access their docfreq
and positions
.
Trait Implementations
impl<TDocSet: DocSet> From<Vec<TDocSet>> for Intersection<TDocSet>
[src]
fn from(docsets: Vec<TDocSet>) -> Intersection<TDocSet>
[src]
Performs the conversion.
impl<TDocSet: DocSet> DocSet for Intersection<TDocSet>
[src]
fn advance(&mut self) -> bool
[src]
Goes to the next element. .advance(...)
needs to be called a first time to point to the correct element. Read more
fn skip_next(&mut self, target: DocId) -> SkipResult
[src]
After skipping, position the iterator in such a way that .doc()
will return a value greater than or equal to target. Read more
fn doc(&self) -> DocId
[src]
Returns the current document
fn size_hint(&self) -> u32
[src]
Returns a best-effort hint of the length of the docset. Read more
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) -> u32
[src]
Returns the number documents matching. Read more
impl<TScorer> Scorer for Intersection<TScorer> where
TScorer: Scorer,
[src]
TScorer: Scorer,
Auto Trait Implementations
impl<TDocSet> Send for Intersection<TDocSet> where
TDocSet: Send,
TDocSet: Send,
impl<TDocSet> Sync for Intersection<TDocSet> where
TDocSet: Sync,
TDocSet: Sync,