NamedWriteable
, Writeable
, ToXContent
, ToXContentFragment
, Aggregation
, MultiBucketsAggregation
InternalAdjacencyMatrix
, InternalBinaryRange
, InternalComposite
, InternalDateHistogram
, InternalFilters
, InternalGeoHashGrid
, InternalHistogram
, InternalRange
, InternalSignificantTerms
, InternalTerms
public abstract class InternalMultiBucketAggregation<A extends InternalMultiBucketAggregation,B extends InternalMultiBucketAggregation.InternalBucket> extends InternalAggregation implements MultiBucketsAggregation
Modifier and Type | Class | Description |
---|---|---|
static class |
InternalMultiBucketAggregation.InternalBucket |
Aggregation.CommonFields
InternalAggregation.ReduceContext
MultiBucketsAggregation.Bucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
TYPED_KEYS_DELIMITER
metaData, name
EMPTY_PARAMS
Modifier | Constructor | Description |
---|---|---|
|
InternalMultiBucketAggregation(java.lang.String name,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
|
protected |
InternalMultiBucketAggregation(StreamInput in) |
Read from a stream.
|
Modifier and Type | Method | Description |
---|---|---|
static int |
countInnerBucket(Aggregation agg) |
Counts the number of inner buckets inside the provided
Aggregation |
static int |
countInnerBucket(InternalMultiBucketAggregation.InternalBucket bucket) |
Counts the number of inner buckets inside the provided
InternalMultiBucketAggregation.InternalBucket |
abstract A |
create(java.util.List<B> buckets) |
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
abstract B |
createBucket(InternalAggregations aggregations,
B prototype) |
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
abstract java.util.List<? extends InternalMultiBucketAggregation.InternalBucket> |
getBuckets() |
|
java.lang.Object |
getProperty(java.util.List<java.lang.String> path) |
getMetaData, getName, getType
doEquals, doHashCode, doReduce, doWriteTo, doXContentBody, equals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeTo
getWriteableName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toXContent
isFragment
public InternalMultiBucketAggregation(java.lang.String name, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
protected InternalMultiBucketAggregation(StreamInput in) throws java.io.IOException
java.io.IOException
public abstract A create(java.util.List<B> buckets)
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.buckets
- the buckets to use in the new Aggregation
Aggregation
public abstract B createBucket(InternalAggregations aggregations, B prototype)
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypepublic abstract java.util.List<? extends InternalMultiBucketAggregation.InternalBucket> getBuckets()
getBuckets
in interface MultiBucketsAggregation
public java.lang.Object getProperty(java.util.List<java.lang.String> path)
getProperty
in class InternalAggregation
public static int countInnerBucket(InternalMultiBucketAggregation.InternalBucket bucket)
InternalMultiBucketAggregation.InternalBucket
public static int countInnerBucket(Aggregation agg)
Aggregation