public final class InternalBinaryRange extends InternalMultiBucketAggregation<InternalBinaryRange,InternalBinaryRange.Bucket> implements Range
Modifier and Type | Class and Description |
---|---|
static class |
InternalBinaryRange.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 |
---|
InternalBinaryRange(java.lang.String name,
DocValueFormat format,
boolean keyed,
InternalBinaryRange.Bucket[] buckets,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalBinaryRange |
create(java.util.List<InternalBinaryRange.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
InternalBinaryRange.Bucket |
createBucket(InternalAggregations aggregations,
InternalBinaryRange.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
protected void |
doReadFrom(StreamInput in) |
InternalAggregation |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.util.List<Range.Bucket> |
getBuckets()
Return the buckets of this range 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 InternalBinaryRange(java.lang.String name, DocValueFormat format, boolean keyed, InternalBinaryRange.Bucket[] buckets, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
public static void registerStream()
public java.util.List<Range.Bucket> getBuckets()
Range
getBuckets
in interface MultiBucketsAggregation
getBuckets
in interface Range
public InternalBinaryRange create(java.util.List<InternalBinaryRange.Bucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<InternalBinaryRange,InternalBinaryRange.Bucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public InternalBinaryRange.Bucket createBucket(InternalAggregations aggregations, InternalBinaryRange.Bucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<InternalBinaryRange,InternalBinaryRange.Bucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypepublic InternalAggregation.Type type()
type
in class InternalAggregation
InternalAggregation.Type
of this aggregationpublic InternalAggregation doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class InternalAggregation
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class InternalAggregation
java.io.IOException
protected void doReadFrom(StreamInput in) throws java.io.IOException
doReadFrom
in class InternalAggregation
java.io.IOException