Package org.apache.lucene.search
Class TopScoreDocCollector.PagingTopScoreDocCollector
- java.lang.Object
-
- org.apache.lucene.search.TopDocsCollector<ScoreDoc>
-
- org.apache.lucene.search.TopScoreDocCollector
-
- org.apache.lucene.search.TopScoreDocCollector.PagingTopScoreDocCollector
-
- All Implemented Interfaces:
Collector
- Enclosing class:
- TopScoreDocCollector
private static class TopScoreDocCollector.PagingTopScoreDocCollector extends TopScoreDocCollector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.search.TopScoreDocCollector
TopScoreDocCollector.ScorerLeafCollector
-
-
Field Summary
Fields Modifier and Type Field Description private ScoreDoc
after
private int
collectedHits
-
Fields inherited from class org.apache.lucene.search.TopScoreDocCollector
docBase, hitsThresholdChecker, minCompetitiveScore, minScoreAcc, pqTop
-
Fields inherited from class org.apache.lucene.search.TopDocsCollector
EMPTY_TOPDOCS, pq, totalHits, totalHitsRelation
-
-
Constructor Summary
Constructors Constructor Description PagingTopScoreDocCollector(int numHits, ScoreDoc after, HitsThresholdChecker hitsThresholdChecker, MaxScoreAccumulator minScoreAcc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeafCollector
getLeafCollector(LeafReaderContext context)
Create a newcollector
to collect the given context.protected TopDocs
newTopDocs(ScoreDoc[] results, int start)
Returns aTopDocs
instance containing the given results.protected int
topDocsSize()
The number of valid PQ entries-
Methods inherited from class org.apache.lucene.search.TopScoreDocCollector
create, create, create, createSharedManager, scoreMode, updateGlobalMinCompetitiveScore, updateMinCompetitiveScore
-
Methods inherited from class org.apache.lucene.search.TopDocsCollector
getTotalHits, populateResults, topDocs, topDocs, topDocs
-
-
-
-
Field Detail
-
after
private final ScoreDoc after
-
collectedHits
private int collectedHits
-
-
Constructor Detail
-
PagingTopScoreDocCollector
PagingTopScoreDocCollector(int numHits, ScoreDoc after, HitsThresholdChecker hitsThresholdChecker, MaxScoreAccumulator minScoreAcc)
-
-
Method Detail
-
topDocsSize
protected int topDocsSize()
Description copied from class:TopDocsCollector
The number of valid PQ entries- Overrides:
topDocsSize
in classTopDocsCollector<ScoreDoc>
-
newTopDocs
protected TopDocs newTopDocs(ScoreDoc[] results, int start)
Description copied from class:TopDocsCollector
Returns aTopDocs
instance containing the given results. Ifresults
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.- Overrides:
newTopDocs
in classTopScoreDocCollector
-
getLeafCollector
public LeafCollector getLeafCollector(LeafReaderContext context) throws java.io.IOException
Description copied from interface:Collector
Create a newcollector
to collect the given context.- Parameters:
context
- next atomic reader context- Throws:
java.io.IOException
-
-