public final class InternalBinaryRange extends InternalMultiBucketAggregation<InternalBinaryRange,InternalBinaryRange.Bucket> implements Range
| Modifier and Type | Class and Description |
|---|---|
static class |
InternalBinaryRange.Bucket |
InternalMultiBucketAggregation.InternalBucketInternalAggregation.ReduceContextAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
protected DocValueFormat |
format |
protected boolean |
keyed |
metaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
InternalBinaryRange(StreamInput in)
Read from a stream.
|
InternalBinaryRange(java.lang.String name,
DocValueFormat format,
boolean keyed,
java.util.List<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. |
boolean |
doEquals(java.lang.Object obj)
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
int |
doHashCode()
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
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<InternalBinaryRange.Bucket> |
getBuckets()
Return the buckets of this range aggregation.
|
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
getPropertyequals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaData, getName, getTypeisFragmenttoXContentprotected final DocValueFormat format
protected final boolean keyed
public InternalBinaryRange(java.lang.String name,
DocValueFormat format,
boolean keyed,
java.util.List<InternalBinaryRange.Bucket> buckets,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData)
public InternalBinaryRange(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 java.util.List<InternalBinaryRange.Bucket> getBuckets()
RangegetBuckets in interface MultiBucketsAggregationgetBuckets in interface RangegetBuckets in class InternalMultiBucketAggregation<InternalBinaryRange,InternalBinaryRange.Bucket>public InternalBinaryRange create(java.util.List<InternalBinaryRange.Bucket> buckets)
InternalMultiBucketAggregationAggregation 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 AggregationAggregationpublic InternalBinaryRange.Bucket createBucket(InternalAggregations aggregations, InternalBinaryRange.Bucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.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 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.IOExceptionpublic boolean doEquals(java.lang.Object obj)
InternalAggregationInternalAggregation.equals(Object)
method for this class.
This method can safely cast obj to the subclass since the
InternalAggregation.equals(Object) method checks that obj is the same
class as thisdoEquals in class InternalAggregationpublic int doHashCode()
InternalAggregationInternalAggregation.hashCode() for this
class.doHashCode in class InternalAggregation