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, pqTopFields 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 newcollectorto collect the given context.protected TopDocsnewTopDocs(ScoreDoc[] results, int start) Returns aTopDocsinstance containing the given results.protected intThe number of valid PQ entriesMethods inherited from class org.apache.lucene.search.TopScoreDocCollector
create, create, createSharedManager, scoreMode, updateGlobalMinCompetitiveScore, updateMinCompetitiveScoreMethods 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:TopDocsCollectorThe number of valid PQ entries- Overrides:
topDocsSizein classTopDocsCollector<ScoreDoc>
-
newTopDocs
Description copied from class:TopDocsCollectorReturns aTopDocsinstance containing the given results. Ifresultsis 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:
newTopDocsin classTopScoreDocCollector
-
getLeafCollector
Description copied from interface:CollectorCreate a newcollectorto collect the given context.- Parameters:
context- next atomic reader context- Throws:
IOException
-