public final class LargeNumHitsTopDocsCollector extends Object implements Collector
Constructor and Description |
---|
LargeNumHitsTopDocsCollector(int requestedHitCount) |
Modifier and Type | Method and Description |
---|---|
LeafCollector |
getLeafCollector(LeafReaderContext context)
Create a new
collector to collect the given context. |
protected TopDocs |
newTopDocs(ScoreDoc[] results)
Returns a
TopDocs instance containing the given results. |
protected void |
populateResults(ScoreDoc[] results,
int howMany)
Populates the results array with the ScoreDoc instances.
|
ScoreMode |
scoreMode()
Indicates what features are required from the scorer.
|
TopDocs |
topDocs()
Returns the top docs that were collected by this collector.
|
TopDocs |
topDocs(int howMany)
Returns the top docs that were collected by this collector.
|
public LargeNumHitsTopDocsCollector(int requestedHitCount)
public ScoreMode scoreMode()
Collector
public LeafCollector getLeafCollector(LeafReaderContext context)
Collector
collector
to collect the given context.getLeafCollector
in interface Collector
context
- next atomic reader contextpublic TopDocs topDocs(int howMany)
protected void populateResults(ScoreDoc[] results, int howMany)
protected TopDocs newTopDocs(ScoreDoc[] results)
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.public TopDocs topDocs()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.