Package org.apache.lucene.tests.search
Class FixedBitSetCollector
- java.lang.Object
-
- org.apache.lucene.search.SimpleCollector
-
- org.apache.lucene.tests.search.FixedBitSetCollector
-
- All Implemented Interfaces:
Collector,LeafCollector
public class FixedBitSetCollector extends SimpleCollector
Collector that accumulates matching docs in aFixedBitSet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollect(int doc)static CollectorManager<FixedBitSetCollector,FixedBitSet>createManager(int maxDoc)Creates aCollectorManagerthat can concurrently collect matching docs in aFixedBitSetprotected voiddoSetNextReader(LeafReaderContext context)ScoreModescoreMode()-
Methods inherited from class org.apache.lucene.search.SimpleCollector
getLeafCollector, setScorer
-
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
collect, competitiveIterator, finish
-
-
-
-
Method Detail
-
doSetNextReader
protected void doSetNextReader(LeafReaderContext context) throws IOException
- Overrides:
doSetNextReaderin classSimpleCollector- Throws:
IOException
-
collect
public void collect(int doc) throws IOException- Specified by:
collectin interfaceLeafCollector- Specified by:
collectin classSimpleCollector- Throws:
IOException
-
scoreMode
public ScoreMode scoreMode()
-
createManager
public static CollectorManager<FixedBitSetCollector,FixedBitSet> createManager(int maxDoc)
Creates aCollectorManagerthat can concurrently collect matching docs in aFixedBitSet
-
-