public class InternalFilters extends InternalMultiBucketAggregation<InternalFilters,InternalFilters.InternalBucket> implements Filters
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalFilters.InternalBucket |
InternalAggregation.ReduceContextFilters.BucketAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>metaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
InternalFilters(StreamInput in)
Read from a stream.
|
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) |
| Modifier and Type | Method and Description |
|---|---|
InternalFilters |
create(java.util.List<InternalFilters.InternalBucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
InternalFilters.InternalBucket |
createBucket(InternalAggregations aggregations,
InternalFilters.InternalBucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
InternalFilters.InternalBucket |
getBucketByKey(java.lang.String key) |
java.util.List<InternalFilters.InternalBucket> |
getBuckets()
The buckets created by this aggregation.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
getPropertygetMetaData, getName, getProperty, getType, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetaData, getName, getTypeisFragment, toXContentpublic 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 InternalFilters(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablepublic InternalFilters create(java.util.List<InternalFilters.InternalBucket> buckets)
InternalMultiBucketAggregationAggregation 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 AggregationAggregationpublic InternalFilters.InternalBucket createBucket(InternalAggregations aggregations, InternalFilters.InternalBucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.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()
FiltersgetBuckets in interface FiltersgetBuckets in interface MultiBucketsAggregationgetBuckets in class InternalMultiBucketAggregation<InternalFilters,InternalFilters.InternalBucket>public InternalFilters.InternalBucket getBucketByKey(java.lang.String key)
getBucketByKey in interface Filterspublic InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOException