Class CeCollector<T extends org.apache.lucene.search.ScoreDoc>
- java.lang.Object
-
- ai.preferred.cerebro.index.search.structure.CeCollector<T>
-
- Type Parameters:
T
- Type of Object to rank against each others.
- All Implemented Interfaces:
org.apache.lucene.search.Collector
- Direct Known Subclasses:
CeTopScoreDocCollector
public abstract class CeCollector<T extends org.apache.lucene.search.ScoreDoc> extends java.lang.Object implements org.apache.lucene.search.Collector
Cerebro's internal Scoring functionality.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CeCollector(Container<T> container, int k)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
getTotalHits()
protected abstract org.apache.lucene.search.TopDocs
newTopDocs(org.apache.lucene.search.ScoreDoc[] results, int start)
protected void
populateResults(org.apache.lucene.search.ScoreDoc[] results, int howMany)
org.apache.lucene.search.TopDocs
topDocs()
org.apache.lucene.search.TopDocs
topDocs(int start)
org.apache.lucene.search.TopDocs
topDocs(int start, int howMany)
protected int
topDocsSize()
-
-
-
Method Detail
-
populateResults
protected void populateResults(org.apache.lucene.search.ScoreDoc[] results, int howMany)
-
newTopDocs
protected abstract org.apache.lucene.search.TopDocs newTopDocs(org.apache.lucene.search.ScoreDoc[] results, int start)
-
getTotalHits
public int getTotalHits()
-
topDocsSize
protected int topDocsSize()
-
topDocs
public org.apache.lucene.search.TopDocs topDocs()
-
topDocs
public org.apache.lucene.search.TopDocs topDocs(int start)
-
topDocs
public org.apache.lucene.search.TopDocs topDocs(int start, int howMany)
-
-