org.getopt.luke
Class AccessibleTopHitCollector
java.lang.Object
org.apache.lucene.search.Collector
org.getopt.luke.AccessibleHitCollector
org.getopt.luke.AccessibleTopHitCollector
public class AccessibleTopHitCollector
- extends AccessibleHitCollector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessibleTopHitCollector
public AccessibleTopHitCollector(int size,
boolean outOfOrder,
boolean shouldScore)
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
collect
public void collect(int doc)
throws java.io.IOException
- Specified by:
collect
in class org.apache.lucene.search.Collector
- Throws:
java.io.IOException
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