Class AbstractHitCollector
- java.lang.Object
-
- org.apache.lucene.search.Collector
-
- org.apache.jackrabbit.core.query.lucene.hits.AbstractHitCollector
-
public abstract class AbstractHitCollector extends Collector
Collector implementation which simply provides the collection of re-based doc base with scorer.
-
-
Constructor Summary
Constructors Constructor Description AbstractHitCollector()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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(IndexReader reader, int docBase)
void
setScorer(Scorer scorer)
-
-
-
Field Detail
-
base
protected int base
-
scorer
protected Scorer scorer
-
-
Method Detail
-
setNextReader
public void setNextReader(IndexReader reader, int docBase) throws IOException
- Specified by:
setNextReader
in classCollector
- Throws:
IOException
-
setScorer
public void setScorer(Scorer scorer) throws IOException
- Specified by:
setScorer
in classCollector
- Throws:
IOException
-
collect
public void collect(int doc) throws IOException
- Specified by:
collect
in classCollector
- 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.score
- the document's score.
-
acceptsDocsOutOfOrder
public boolean acceptsDocsOutOfOrder()
- Specified by:
acceptsDocsOutOfOrder
in classCollector
-
-