org.getopt.luke
Class CountLimitedHitCollector
java.lang.Object
org.apache.lucene.search.Collector
org.getopt.luke.AccessibleHitCollector
org.getopt.luke.LimitedHitCollector
org.getopt.luke.CountLimitedHitCollector
public class CountLimitedHitCollector
- extends LimitedHitCollector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountLimitedHitCollector
public CountLimitedHitCollector(int maxSize,
boolean outOfOrder,
boolean shouldScore)
limitSize
public long limitSize()
- Specified by:
limitSize
in class LimitedHitCollector
limitType
public int limitType()
- Specified by:
limitType
in class LimitedHitCollector
collect
public void collect(int doc)
throws java.io.IOException
- Specified by:
collect
in class org.apache.lucene.search.Collector
- Throws:
java.io.IOException
getDocId
public int getDocId(int pos)
- Specified by:
getDocId
in class AccessibleHitCollector
getScore
public float getScore(int pos)
- Specified by:
getScore
in class AccessibleHitCollector
getTotalHits
public int getTotalHits()
- Specified by:
getTotalHits
in class AccessibleHitCollector
acceptsDocsOutOfOrder
public boolean acceptsDocsOutOfOrder()
- Specified by:
acceptsDocsOutOfOrder
in class org.apache.lucene.search.Collector
setNextReader
public void setNextReader(org.apache.lucene.index.IndexReader r,
int base)
throws java.io.IOException
- Specified by:
setNextReader
in class org.apache.lucene.search.Collector
- Throws:
java.io.IOException
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
throws java.io.IOException
- Specified by:
setScorer
in class org.apache.lucene.search.Collector
- Throws:
java.io.IOException
reset
public void reset()
- Specified by:
reset
in class AccessibleHitCollector