java.io.Closeable
, java.lang.AutoCloseable
, org.apache.lucene.search.Collector
, Releasable
AggregatorBase
, AggregatorFactory.MultiBucketAggregatorWrapper
, DeferringBucketCollector.WrappedAggregator
, ProfilingAggregator
public abstract class Aggregator extends BucketCollector implements Releasable
Modifier and Type | Class | Description |
---|---|---|
static interface |
Aggregator.Parser |
Parses the aggregation request and creates the appropriate aggregator factory for it.
|
static class |
Aggregator.SubAggCollectionMode |
Aggregation mode for sub aggregations.
|
NO_OP_COLLECTOR
Constructor | Description |
---|---|
Aggregator() |
Modifier and Type | Method | Description |
---|---|---|
abstract InternalAggregation |
buildAggregation(long bucket) |
Build an aggregation for data that has been collected into
bucket . |
abstract InternalAggregation |
buildEmptyAggregation() |
Build an empty aggregation.
|
abstract SearchContext |
context() |
Return the
SearchContext attached with this Aggregator . |
static boolean |
descendsFromBucketAggregator(Aggregator parent) |
Returns whether one of the parents is a
BucketsAggregator . |
abstract java.lang.String |
name() |
Return the name of this aggregator.
|
abstract Aggregator |
parent() |
Return the parent aggregator.
|
abstract Aggregator |
subAggregator(java.lang.String name) |
Return the sub aggregator with the provided name.
|
getLeafCollector, postCollection, preCollection, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public static boolean descendsFromBucketAggregator(Aggregator parent)
BucketsAggregator
.public abstract java.lang.String name()
public abstract SearchContext context()
SearchContext
attached with this Aggregator
.public abstract Aggregator parent()
public abstract Aggregator subAggregator(java.lang.String name)
public abstract InternalAggregation buildAggregation(long bucket) throws java.io.IOException
bucket
.java.io.IOException
public abstract InternalAggregation buildEmptyAggregation()