Package org.apache.lucene.tests.search
Class CheckHits.SetCollector
java.lang.Object
org.apache.lucene.search.SimpleCollector
org.apache.lucene.tests.search.CheckHits.SetCollector
- All Implemented Interfaces:
Collector
,LeafCollector
- Enclosing class:
- CheckHits
Just collects document ids into a set.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
collect
(int doc) protected void
doSetNextReader
(LeafReaderContext context) void
Methods inherited from class org.apache.lucene.search.SimpleCollector
getLeafCollector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.search.LeafCollector
competitiveIterator
-
Constructor Details
-
SetCollector
-
-
Method Details
-
setScorer
- Specified by:
setScorer
in interfaceLeafCollector
- Overrides:
setScorer
in classSimpleCollector
- Throws:
IOException
-
collect
public void collect(int doc) - Specified by:
collect
in interfaceLeafCollector
- Specified by:
collect
in classSimpleCollector
-
doSetNextReader
- Overrides:
doSetNextReader
in classSimpleCollector
- Throws:
IOException
-
scoreMode
-