public final class LargeNumHitsTopDocsCollector extends Object implements Collector
Constructor and Description |
---|
LargeNumHitsTopDocsCollector(int requestedHitCount) |
Modifier and Type | Method and Description |
---|---|
LeafCollector |
getLeafCollector(LeafReaderContext 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() |
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 LeafCollector getLeafCollector(LeafReaderContext context)
getLeafCollector
in interface Collector
public 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-2021 Apache Software Foundation. All Rights Reserved.