public class BestBucketsDeferringCollector extends DeferringBucketCollector
DeferringBucketCollector that collects all
matches and then is able to replay a given subset of buckets which represent
the survivors from a pruning process performed by the aggregator that owns
this collector.DeferringBucketCollector.WrappedAggregatorNO_OP_COLLECTOR| Constructor and Description |
|---|
BestBucketsDeferringCollector()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) |
boolean |
needsScores() |
void |
postCollection()
Post-collection callback.
|
void |
preCollection()
Pre collection callback.
|
void |
prepareSelectedBuckets(long... selectedBuckets)
Replay the wrapped collector, but only on a selection of buckets.
|
void |
setDeferredCollector(Iterable<BucketCollector> deferredCollectors)
Set the deferred collectors.
|
Aggregator |
wrap(Aggregator in)
Wrap the provided aggregator so that it behaves (almost) as if it had
been collected directly.
|
replaywrappublic BestBucketsDeferringCollector()
public boolean needsScores()
public void setDeferredCollector(Iterable<BucketCollector> deferredCollectors)
setDeferredCollector in class DeferringBucketCollectorpublic LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
getLeafCollector in interface org.apache.lucene.search.CollectorgetLeafCollector in class BucketCollectorIOExceptionpublic void preCollection()
throws IOException
BucketCollectorpreCollection in class BucketCollectorIOExceptionpublic void postCollection()
throws IOException
BucketCollectorpostCollection in class BucketCollectorIOExceptionpublic void prepareSelectedBuckets(long... selectedBuckets)
throws IOException
prepareSelectedBuckets in class DeferringBucketCollectorIOExceptionpublic Aggregator wrap(Aggregator in)
wrap in class DeferringBucketCollectorCopyright © 2009–2017. All rights reserved.