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.SimpleCollector
Counts the total hit, as
TotalHitCountCollector does.
Moreover, it periodically checks for timeout.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollect(int doc) intReturns how many hits matched the search.org.apache.lucene.search.ScoreModeMethods inherited from class org.apache.lucene.search.SimpleCollector
doSetNextReader, getLeafCollector, setScorerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.search.Collector
setWeightMethods inherited from interface org.apache.lucene.search.LeafCollector
collect, competitiveIterator, finish
-
Constructor Details
-
TimeoutCountCollector
-
-
Method Details
-
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()
-