Package org.apache.solr.search
Class DocSetCollector
- java.lang.Object
-
- org.apache.lucene.search.SimpleCollector
-
- org.apache.solr.search.DocSetCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
,org.apache.lucene.search.LeafCollector
public class DocSetCollector extends org.apache.lucene.search.SimpleCollector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
DocSetCollector.ExpandingIntArray
-
Constructor Summary
Constructors Constructor Description DocSetCollector(int maxDoc)
DocSetCollector(int smallSetSize, int maxDoc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collect(int doc)
protected void
doSetNextReader(org.apache.lucene.index.LeafReaderContext context)
DocSet
getDocSet()
org.apache.lucene.search.ScoreMode
scoreMode()
void
setScorer(org.apache.lucene.search.Scorable scorer)
int
size()
The number of documents that have been collected
-
-
-
Method Detail
-
collect
public void collect(int doc) throws IOException
- Specified by:
collect
in interfaceorg.apache.lucene.search.LeafCollector
- Specified by:
collect
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
size
public int size()
The number of documents that have been collected
-
getDocSet
public DocSet getDocSet()
-
setScorer
public void setScorer(org.apache.lucene.search.Scorable scorer) throws IOException
- Specified by:
setScorer
in interfaceorg.apache.lucene.search.LeafCollector
- Overrides:
setScorer
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
-
doSetNextReader
protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Overrides:
doSetNextReader
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
-