private static class TopScoreDocCollector.PagingTopScoreDocCollector extends TopScoreDocCollector
TopScoreDocCollector.ScorerLeafCollector
Modifier and Type | Field and Description |
---|---|
private ScoreDoc |
after |
private int |
collectedHits |
pqTop, totalHitsThreshold
EMPTY_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, updateMinCompetitiveScore
getTotalHits, populateResults, topDocs, topDocs, topDocs
private final ScoreDoc after
private int collectedHits
PagingTopScoreDocCollector(int numHits, ScoreDoc after, int totalHitsThreshold)
protected int topDocsSize()
TopDocsCollector
topDocsSize
in class TopDocsCollector<ScoreDoc>
protected TopDocs newTopDocs(ScoreDoc[] results, int start)
TopDocsCollector
TopDocs
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 TopScoreDocCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws java.io.IOException
Collector
collector
to collect the given context.context
- next atomic reader contextjava.io.IOException