public class InternalFilters extends InternalMultiBucketAggregation<InternalFilters,InternalFilters.InternalBucket> implements Filters
Modifier and Type | Class and Description |
---|---|
static class |
InternalFilters.InternalBucket |
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
Filters.Bucket
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static InternalAggregation.Type |
TYPE |
metaData, name
EMPTY_PARAMS
Constructor and Description |
---|
InternalFilters() |
InternalFilters(java.lang.String name,
java.util.List<InternalFilters.InternalBucket> buckets,
boolean keyed,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
getProperty
getMetaData, getName, getProperty, pipelineAggregators, readFrom, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getProperty
public static final InternalAggregation.Type TYPE
public InternalFilters()
public InternalFilters(java.lang.String name, java.util.List<InternalFilters.InternalBucket> buckets, boolean keyed, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
public static void registerStream()
public InternalAggregation.Type type()
type
in class InternalAggregation
InternalAggregation.Type
of this aggregationpublic InternalFilters create(java.util.List<InternalFilters.InternalBucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<InternalFilters,InternalFilters.InternalBucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public InternalFilters.InternalBucket createBucket(InternalAggregations aggregations, InternalFilters.InternalBucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<InternalFilters,InternalFilters.InternalBucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypepublic java.util.List<InternalFilters.InternalBucket> getBuckets()
Filters
getBuckets
in interface Filters
getBuckets
in interface MultiBucketsAggregation
public InternalFilters.InternalBucket getBucketByKey(java.lang.String key)
getBucketByKey
in interface Filters
public InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
protected void doReadFrom(StreamInput in) throws java.io.IOException
doReadFrom
in class InternalAggregation
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class InternalAggregation
java.io.IOException
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class InternalAggregation
java.io.IOException