Module org.apache.lucene.core
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.TopScoreDocCollector
TopScoreDocCollector.PagingTopScoreDocCollector, TopScoreDocCollector.ScorerLeafCollector, TopScoreDocCollector.SimpleTopScoreDocCollector
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionPagingTopScoreDocCollector
(int numHits, ScoreDoc after, HitsThresholdChecker hitsThresholdChecker, MaxScoreAccumulator minScoreAcc) -
Method Summary
Modifier and TypeMethodDescriptiongetLeafCollector
(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
The number of valid PQ entriesMethods inherited from class org.apache.lucene.search.TopScoreDocCollector
create, create, createSharedManager, scoreMode, updateGlobalMinCompetitiveScore, updateMinCompetitiveScore
Methods inherited from class org.apache.lucene.search.TopDocsCollector
getTotalHits, populateResults, topDocs, topDocs, topDocs
-
Field Details
-
after
-
collectedHits
private int collectedHits
-
-
Constructor Details
-
PagingTopScoreDocCollector
PagingTopScoreDocCollector(int numHits, ScoreDoc after, HitsThresholdChecker hitsThresholdChecker, MaxScoreAccumulator minScoreAcc)
-
-
Method Details
-
topDocsSize
protected int topDocsSize()Description copied from class:TopDocsCollector
The number of valid PQ entries- Overrides:
topDocsSize
in classTopDocsCollector<ScoreDoc>
-
newTopDocs
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
Description copied from interface:Collector
Create a newcollector
to collect the given context.- Parameters:
context
- next atomic reader context- Throws:
IOException
-