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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a collector manager.getLeafCollector(LeafReaderContext context) intGet 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:
getLeafCollectorin interfaceCollector- Throws:
IOException
-
createManager
Create a collector manager.
-