Module org.elasticsearch.server
Class DeferringBucketCollector
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector
- Direct Known Subclasses:
BestBucketsDeferringCollector,BestDocsDeferringCollector
A
BucketCollector that records collected doc IDs and buckets and
allows to replay a subset of the collected buckets.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.BucketCollector
BucketCollector.BucketCollectorWrapper -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_BUCKET_COLLECTOR, NO_OP_COLLECTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidprepareSelectedBuckets(LongArray selectedBuckets) Replay the deferred hits on the selected buckets.abstract voidsetDeferredCollector(Iterable<BucketCollector> deferredCollectors) Set the deferred collectors.wrap(Aggregator in, BigArrays bigArrays) Wrap the provided aggregator so that it behaves (almost) as if it had been collected directly.Methods inherited from class org.elasticsearch.search.aggregations.BucketCollector
asCollector, getLeafCollector, postCollection, preCollection, scoreMode
-
Constructor Details
-
DeferringBucketCollector
public DeferringBucketCollector()Sole constructor.
-
-
Method Details
-
setDeferredCollector
Set the deferred collectors. -
prepareSelectedBuckets
Replay the deferred hits on the selected buckets.- Throws:
IOException
-
wrap
Wrap the provided aggregator so that it behaves (almost) as if it had been collected directly.
-