Package org.apache.lucene.tests.search
Class DummyTotalHitCountCollector
java.lang.Object
org.apache.lucene.tests.search.DummyTotalHitCountCollector
- All Implemented Interfaces:
Collector
A dummy version of
TotalHitCountCollector
that doesn't shortcut using Weight.count(org.apache.lucene.index.LeafReaderContext)
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a collector manager.getLeafCollector
(LeafReaderContext context) int
Get the number of hits.
-
Constructor Details
-
DummyTotalHitCountCollector
public DummyTotalHitCountCollector()Constructor
-
-
Method Details
-
getTotalHits
public int getTotalHits()Get the number of hits. -
scoreMode
-
getLeafCollector
- Specified by:
getLeafCollector
in interfaceCollector
- Throws:
IOException
-
createManager
Create a collector manager.
-