org.apache.jackrabbit.core.query.lucene.hits
Class AbstractHitCollector
java.lang.Object
org.apache.lucene.search.Collector
org.apache.jackrabbit.core.query.lucene.hits.AbstractHitCollector
public abstract class AbstractHitCollector
- extends org.apache.lucene.search.Collector
Collector implementation which simply provides the collection
of re-based doc base with scorer.
|
Field Summary |
protected int |
base
|
protected org.apache.lucene.search.Scorer |
scorer
|
|
Method Summary |
boolean |
acceptsDocsOutOfOrder()
|
void |
collect(int doc)
|
protected abstract void |
collect(int doc,
float score)
Called once for every document matching a query, with the re-based document
number and its computed score. |
void |
setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
|
void |
setScorer(org.apache.lucene.search.Scorer scorer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
base
protected int base
scorer
protected org.apache.lucene.search.Scorer scorer
AbstractHitCollector
public AbstractHitCollector()
setNextReader
public void setNextReader(org.apache.lucene.index.IndexReader reader,
int docBase)
throws IOException
- Specified by:
setNextReader in class org.apache.lucene.search.Collector
- Throws:
IOException
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
throws IOException
- Specified by:
setScorer in class org.apache.lucene.search.Collector
- Throws:
IOException
collect
public void collect(int doc)
throws IOException
- Specified by:
collect in class org.apache.lucene.search.Collector
- Throws:
IOException
collect
protected abstract void collect(int doc,
float score)
- Called once for every document matching a query, with the re-based document
number and its computed score.
- Parameters:
doc - the re-based document number.doc - the document's score.
acceptsDocsOutOfOrder
public boolean acceptsDocsOutOfOrder()
- Specified by:
acceptsDocsOutOfOrder in class org.apache.lucene.search.Collector
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.