Class DeferringBucketCollector
- java.lang.Object
-
- org.elasticsearch.search.aggregations.BucketCollector
-
- org.elasticsearch.search.aggregations.bucket.DeferringBucketCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector
- Direct Known Subclasses:
BestBucketsDeferringCollector
,BestDocsDeferringCollector
,MergingBucketsDeferringCollector
public abstract class DeferringBucketCollector extends BucketCollector
ABucketCollector
that records collected doc IDs and buckets and allows to replay a subset of the collected buckets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
DeferringBucketCollector.WrappedAggregator
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR
-
-
Constructor Summary
Constructors Constructor Description DeferringBucketCollector()
Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
prepareSelectedBuckets(long... selectedBuckets)
void
replay(long... selectedBuckets)
abstract void
setDeferredCollector(java.lang.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.-
Methods inherited from class org.elasticsearch.search.aggregations.BucketCollector
getLeafCollector, postCollection, preCollection
-
-
-
-
Method Detail
-
setDeferredCollector
public abstract void setDeferredCollector(java.lang.Iterable<BucketCollector> deferredCollectors)
Set the deferred collectors.
-
replay
public final void replay(long... selectedBuckets) throws java.io.IOException
- Throws:
java.io.IOException
-
prepareSelectedBuckets
public abstract void prepareSelectedBuckets(long... selectedBuckets) throws java.io.IOException
- Throws:
java.io.IOException
-
wrap
public Aggregator wrap(Aggregator in)
Wrap the provided aggregator so that it behaves (almost) as if it had been collected directly.
-
-