public class DocSetCollector extends SimpleCollector
Modifier and Type | Class and Description |
---|---|
protected static class |
DocSetCollector.ExpandingIntArray |
Constructor and Description |
---|
DocSetCollector(int maxDoc) |
DocSetCollector(int smallSetSize,
int maxDoc) |
Modifier and Type | Method and Description |
---|---|
void |
collect(int doc) |
protected void |
doSetNextReader(LeafReaderContext context) |
DocSet |
getDocSet() |
ScoreMode |
scoreMode() |
void |
setScorer(Scorable scorer) |
int |
size()
The number of documents that have been collected
|
getLeafCollector
public DocSetCollector(int maxDoc)
public DocSetCollector(int smallSetSize, int maxDoc)
public void collect(int doc) throws IOException
collect
in interface LeafCollector
collect
in class SimpleCollector
IOException
public int size()
public DocSet getDocSet()
public void setScorer(Scorable scorer) throws IOException
setScorer
in interface LeafCollector
setScorer
in class SimpleCollector
IOException
public ScoreMode scoreMode()
protected void doSetNextReader(LeafReaderContext context) throws IOException
doSetNextReader
in class SimpleCollector
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.