private static class TopScoreDocCollector.PagingTopScoreDocCollector extends TopScoreDocCollector
TopScoreDocCollector.ScorerLeafCollector| Modifier and Type | Field and Description |
|---|---|
private ScoreDoc |
after |
private int |
collectedHits |
pqTop, totalHitsThresholdEMPTY_TOPDOCS, pq, totalHits, totalHitsRelation| Constructor and Description |
|---|
PagingTopScoreDocCollector(int numHits,
ScoreDoc after,
int totalHitsThreshold) |
| Modifier and Type | Method and Description |
|---|---|
LeafCollector |
getLeafCollector(LeafReaderContext context)
Create a new
collector to collect the given context. |
protected TopDocs |
newTopDocs(ScoreDoc[] results,
int start)
Returns a
TopDocs instance containing the given results. |
protected int |
topDocsSize()
The number of valid PQ entries
|
create, create, scoreMode, updateMinCompetitiveScoregetTotalHits, populateResults, topDocs, topDocs, topDocsprivate final ScoreDoc after
private int collectedHits
PagingTopScoreDocCollector(int numHits,
ScoreDoc after,
int totalHitsThreshold)
protected int topDocsSize()
TopDocsCollectortopDocsSize in class TopDocsCollector<ScoreDoc>protected TopDocs newTopDocs(ScoreDoc[] results, int start)
TopDocsCollectorTopDocs instance containing the given results. If
results is null it means there are no results to return,
either because there were 0 calls to collect() or because the arguments to
topDocs were invalid.newTopDocs in class TopScoreDocCollectorpublic LeafCollector getLeafCollector(LeafReaderContext context) throws java.io.IOException
Collectorcollector to collect the given context.context - next atomic reader contextjava.io.IOException