org.compass.core.lucene.search
Class CountHitCollector

java.lang.Object
  extended by org.apache.lucene.search.HitCollector
      extended by org.compass.core.lucene.search.CountHitCollector

public class CountHitCollector
extends HitCollector

A hit collector that only returns the count of the hits.

Author:
kimchy

Constructor Summary
CountHitCollector(float minimumScore)
           
 
Method Summary
 void collect(int doc, float score)
           
 int getTotalHits()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountHitCollector

public CountHitCollector(float minimumScore)
Method Detail

collect

public void collect(int doc,
                    float score)
Specified by:
collect in class HitCollector

getTotalHits

public int getTotalHits()


Copyright (c) 2004-2008 The Compass Project.