public static class InternalHistogram.Bucket extends InternalMultiBucketAggregation.InternalBucket implements Histogram.Bucket, KeyComparable<InternalHistogram.Bucket>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field and Description |
|---|---|
protected DocValueFormat |
format |
EMPTY_PARAMS| Constructor and Description |
|---|
Bucket(double key,
long docCount,
boolean keyed,
DocValueFormat format,
InternalAggregations aggregations) |
Bucket(StreamInput in,
boolean keyed,
DocValueFormat format)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareKey(InternalHistogram.Bucket other)
Compare this
MultiBucketsAggregation.Buckets key with another bucket. |
boolean |
equals(java.lang.Object obj) |
Aggregations |
getAggregations() |
long |
getDocCount() |
DocValueFormat |
getFormatter() |
java.lang.Object |
getKey() |
java.lang.String |
getKeyAsString() |
boolean |
getKeyed() |
int |
hashCode() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
getPropertyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentprotected final transient DocValueFormat format
public Bucket(double key,
long docCount,
boolean keyed,
DocValueFormat format,
InternalAggregations aggregations)
public Bucket(StreamInput in, boolean keyed, DocValueFormat format) throws java.io.IOException
java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic java.lang.String getKeyAsString()
getKeyAsString in interface MultiBucketsAggregation.Bucketpublic java.lang.Object getKey()
getKey in interface MultiBucketsAggregation.Bucketpublic long getDocCount()
getDocCount in interface MultiBucketsAggregation.Bucketpublic Aggregations getAggregations()
getAggregations in interface MultiBucketsAggregation.BucketgetAggregations in interface HasAggregationspublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic int compareKey(InternalHistogram.Bucket other)
KeyComparableMultiBucketsAggregation.Buckets key with another bucket.compareKey in interface KeyComparable<InternalHistogram.Bucket>other - the bucket that contains the key to compare to.Comparable.compareTo(Object)public DocValueFormat getFormatter()
public boolean getKeyed()