public abstract class DeferringBucketCollector extends BucketCollector
BucketCollector
that records collected doc IDs and buckets and
allows to replay a subset of the collected buckets.Modifier and Type | Class and Description |
---|---|
protected class |
DeferringBucketCollector.WrappedAggregator |
NO_OP_COLLECTOR
Constructor and Description |
---|
DeferringBucketCollector()
Sole constructor.
|
Modifier and Type | Method and 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.
|
getLeafCollector, postCollection, preCollection, wrap
public abstract void setDeferredCollector(java.lang.Iterable<BucketCollector> deferredCollectors)
public final void replay(long... selectedBuckets) throws java.io.IOException
java.io.IOException
public abstract void prepareSelectedBuckets(long... selectedBuckets) throws java.io.IOException
java.io.IOException
public Aggregator wrap(Aggregator in)