Class TimeoutCountCollector
- java.lang.Object
-
- org.apache.lucene.search.SimpleCollector
-
- org.hibernate.search.backend.lucene.lowlevel.collector.impl.TimeoutCountCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector,org.apache.lucene.search.LeafCollector
public class TimeoutCountCollector extends org.apache.lucene.search.SimpleCollectorCounts the total hit, asTotalHitCountCollectordoes. Moreover, it periodically checks for timeout.
-
-
Constructor Summary
Constructors Constructor Description TimeoutCountCollector(Deadline deadline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollect(int doc)intgetTotalHits()Returns how many hits matched the search.org.apache.lucene.search.ScoreModescoreMode()-
Methods inherited from class org.apache.lucene.search.SimpleCollector
doSetNextReader, getLeafCollector, setScorer
-
-
-
-
Constructor Detail
-
TimeoutCountCollector
public TimeoutCountCollector(Deadline deadline)
-
-
Method Detail
-
getTotalHits
public int getTotalHits()
Returns how many hits matched the search.
-
collect
public void collect(int doc)
- Specified by:
collectin interfaceorg.apache.lucene.search.LeafCollector- Specified by:
collectin classorg.apache.lucene.search.SimpleCollector
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
-
-