Struct tantivy::collector::CountCollector
[−]
[src]
pub struct CountCollector { /* fields omitted */ }
CountCollector
collector only counts how many
documents match the query.
Methods
impl CountCollector
[src]
Trait Implementations
impl Default for CountCollector
[src]
fn default() -> CountCollector
[src]
Returns the "default value" for a type. Read more
impl Collector for CountCollector
[src]
fn set_segment(&mut self, _: SegmentLocalId, _: &SegmentReader) -> Result<()>
[src]
set_segment
is called before beginning to enumerate on this segment. Read more
fn collect(&mut self, _: DocId, _: Score)
[src]
The query pushes the scored document to the collector via this method.