Class TotalHitCountCollector

java.lang.Object
org.apache.lucene.search.TotalHitCountCollector
All Implemented Interfaces:
Collector

public class TotalHitCountCollector extends Object implements Collector
Just counts the total number of hits. This is the collector behind IndexSearcher.count(org.apache.lucene.search.Query). When the Weight implements Weight.count(org.apache.lucene.index.LeafReaderContext), this collector will skip collecting segments.