|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Collector
net.sf.lucis.core.support.CountingCollector
public class CountingCollector
A hit collector that simply counts the number of hits.
| Constructor Summary | |
|---|---|
CountingCollector()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
acceptsDocsOutOfOrder()
|
void |
collect(int doc)
|
int |
getCount()
Returns the document count. |
float |
getMaxScore()
Returns the maximum collected score. |
void |
reset()
Resets the collector. |
void |
setNextReader(IndexReader reader,
int docBase)
|
void |
setScorer(Scorer scorer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountingCollector()
| Method Detail |
|---|
public void collect(int doc)
throws IOException
collect in class CollectorIOExceptionpublic boolean acceptsDocsOutOfOrder()
acceptsDocsOutOfOrder in class Collector
public void setNextReader(IndexReader reader,
int docBase)
throws IOException
setNextReader in class CollectorIOException
public void setScorer(Scorer scorer)
throws IOException
setScorer in class CollectorIOExceptionpublic void reset()
public final int getCount()
public final float getMaxScore()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||