private static final class TopFieldCollector.PagingFieldCollector extends TopFieldCollector
Modifier and Type | Field and Description |
---|---|
(package private) FieldDoc |
after |
(package private) int |
collectedHits |
(package private) boolean |
mayNeedScoresTwice |
(package private) FieldValueHitQueue<FieldValueHitQueue.Entry> |
queue |
(package private) boolean |
trackDocScores |
(package private) boolean |
trackMaxScore |
bottom, docBase, maxScore, needsScores, numHits, queueFull
EMPTY_TOPDOCS, pq, totalHits
Constructor and Description |
---|
PagingFieldCollector(Sort sort,
FieldValueHitQueue<FieldValueHitQueue.Entry> queue,
FieldDoc after,
int numHits,
boolean fillFields,
boolean trackDocScores,
boolean trackMaxScore) |
Modifier and Type | Method and Description |
---|---|
LeafCollector |
getLeafCollector(LeafReaderContext context)
Create a new
collector to collect the given context. |
add, create, create, needsScores, newTopDocs, populateResults, topDocs, updateBottom, updateBottom
getTotalHits, topDocs, topDocs, topDocsSize
int collectedHits
final FieldValueHitQueue<FieldValueHitQueue.Entry> queue
final boolean trackDocScores
final boolean trackMaxScore
final FieldDoc after
final boolean mayNeedScoresTwice
public PagingFieldCollector(Sort sort, FieldValueHitQueue<FieldValueHitQueue.Entry> queue, FieldDoc after, int numHits, boolean fillFields, boolean trackDocScores, boolean trackMaxScore)
public LeafCollector getLeafCollector(LeafReaderContext context) throws java.io.IOException
Collector
collector
to collect the given context.context
- next atomic reader contextjava.io.IOException