Package org.apache.lucene.tests.search
Class DummyTotalHitCountCollector
- java.lang.Object
-
- org.apache.lucene.tests.search.DummyTotalHitCountCollector
-
- All Implemented Interfaces:
Collector
public class DummyTotalHitCountCollector extends Object implements Collector
A dummy version ofTotalHitCountCollectorthat doesn't shortcut usingWeight.count(org.apache.lucene.index.LeafReaderContext).
-
-
Constructor Summary
Constructors Constructor Description DummyTotalHitCountCollector()Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollectorManager<DummyTotalHitCountCollector,Integer>createManager()Create a collector manager.LeafCollectorgetLeafCollector(LeafReaderContext context)intgetTotalHits()Get the number of hits.ScoreModescoreMode()
-
-
-
Method Detail
-
getTotalHits
public int getTotalHits()
Get the number of hits.
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws IOException
- Specified by:
getLeafCollectorin interfaceCollector- Throws:
IOException
-
createManager
public static CollectorManager<DummyTotalHitCountCollector,Integer> createManager()
Create a collector manager.
-
-