public abstract class Aggregator extends BucketCollector implements Releasable
Modifier and Type | Class and 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 and Description |
---|
Aggregator() |
Modifier and Type | Method and 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 AggregationContext |
context()
Return the
AggregationContext attached with this Aggregator . |
static boolean |
descendsFromBucketAggregator(Aggregator parent)
Returns whether one of the parents is a
BucketsAggregator . |
abstract String |
name()
Return the name of this aggregator.
|
abstract Aggregator |
parent()
Return the parent aggregator.
|
abstract Aggregator |
subAggregator(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 String name()
public abstract AggregationContext context()
AggregationContext
attached with this Aggregator
.public abstract Aggregator parent()
public abstract Aggregator subAggregator(String name)
public abstract InternalAggregation buildAggregation(long bucket) throws IOException
bucket
.IOException
public abstract InternalAggregation buildEmptyAggregation()
Copyright © 2009–2016. All rights reserved.