public class InternalFilters extends InternalMultiBucketAggregation<InternalFilters,InternalFilters.Bucket> implements Filters
Modifier and Type | Class and Description |
---|---|
static class |
InternalFilters.Bucket |
InternalMultiBucketAggregation.InternalBucket
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
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(String name,
List<InternalFilters.Bucket> buckets,
boolean keyed,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalFilters |
create(List<InternalFilters.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
InternalFilters.Bucket |
createBucket(InternalAggregations aggregations,
InternalFilters.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected void |
doReadFrom(StreamInput in) |
InternalAggregation |
doReduce(List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
InternalFilters.Bucket |
getBucketByKey(String key) |
List<InternalFilters.Bucket> |
getBuckets()
The buckets created by this aggregation.
|
static void |
registerStream() |
InternalAggregation.Type |
type() |
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(String name, List<InternalFilters.Bucket> buckets, boolean keyed, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData)
public static void registerStream()
public InternalAggregation.Type type()
type
in class InternalAggregation
InternalAggregation.Type
of this aggregationpublic InternalFilters create(List<InternalFilters.Bucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<InternalFilters,InternalFilters.Bucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public InternalFilters.Bucket createBucket(InternalAggregations aggregations, InternalFilters.Bucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<InternalFilters,InternalFilters.Bucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypepublic List<InternalFilters.Bucket> getBuckets()
Filters
getBuckets
in interface Filters
getBuckets
in interface MultiBucketsAggregation
public InternalFilters.Bucket getBucketByKey(String key)
getBucketByKey
in interface Filters
public InternalAggregation doReduce(List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
protected void doReadFrom(StreamInput in) throws IOException
doReadFrom
in class InternalAggregation
IOException
protected void doWriteTo(StreamOutput out) throws IOException
doWriteTo
in class InternalAggregation
IOException
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContentBody
in class InternalAggregation
IOException
Copyright © 2009–2016. All rights reserved.