Struct tantivy::collector::DocSetCollector [−][src]
pub struct DocSetCollector;
Expand description
Collectors that returns the set of DocAddress that matches the query.
This collector is mostly useful for tests.
Trait Implementations
type Fruit = HashSet<DocAddress>
type Fruit = HashSet<DocAddress>
Fruit
is the type for the result of our collection.
e.g. usize
for the Count
collector. Read more
type Child = DocSetChildCollector
type Child = DocSetChildCollector
Type of the SegmentCollector
associated to this collector.
fn for_segment(
&self,
segment_local_id: SegmentOrdinal,
_segment: &SegmentReader
) -> Result<Self::Child>
fn for_segment(
&self,
segment_local_id: SegmentOrdinal,
_segment: &SegmentReader
) -> Result<Self::Child>
set_segment
is called before beginning to enumerate
on this segment. Read more
Returns true iff the collector requires to compute scores for documents.
Combines the fruit associated to the collection of each segments into one fruit. Read more
fn collect_segment(
&self,
weight: &dyn Weight,
segment_ord: u32,
reader: &SegmentReader
) -> Result<<Self::Child as SegmentCollector>::Fruit>
fn collect_segment(
&self,
weight: &dyn Weight,
segment_ord: u32,
reader: &SegmentReader
) -> Result<<Self::Child as SegmentCollector>::Fruit>
Created a segment collector and
Auto Trait Implementations
impl RefUnwindSafe for DocSetCollector
impl Send for DocSetCollector
impl Sync for DocSetCollector
impl Unpin for DocSetCollector
impl UnwindSafe for DocSetCollector
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more