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 booleanacceptsDocsOutOfOrder()voidcollect(int doc)protected abstract voidcollect(int doc, float score)Called once for every document matching a query, with the re-based document number and its computed score.voidsetNextReader(IndexReader reader, int docBase)voidsetScorer(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:
setNextReaderin classCollector- Throws:
IOException
-
setScorer
public void setScorer(Scorer scorer) throws IOException
- Specified by:
setScorerin classCollector- Throws:
IOException
-
collect
public void collect(int doc) throws IOException- Specified by:
collectin 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:
acceptsDocsOutOfOrderin classCollector
-
-