public static class LongTerms.Bucket extends InternalTerms.Bucket<LongTerms.Bucket>
InternalTerms.Bucket.Reader<B extends InternalTerms.Bucket<B>>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Writer<V>aggregations, docCount, docCountError, format, showDocCountErrorEMPTY_PARAMS| Constructor and Description |
|---|
Bucket(long term,
long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError,
DocValueFormat format) |
Bucket(StreamInput in,
DocValueFormat format,
boolean showDocCountError)
Read from a stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareKey(LongTerms.Bucket other)
Compare this
MultiBucketsAggregation.Buckets key with another bucket. |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getKey() |
java.lang.Number |
getKeyAsNumber() |
java.lang.String |
getKeyAsString() |
int |
hashCode() |
protected XContentBuilder |
keyToXContent(XContentBuilder builder) |
protected void |
writeTermTo(StreamOutput out) |
getAggregations, getDocCount, getDocCountError, reduce, toXContent, writeTogetPropertyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Bucket(long term,
long docCount,
InternalAggregations aggregations,
boolean showDocCountError,
long docCountError,
DocValueFormat format)
public Bucket(StreamInput in, DocValueFormat format, boolean showDocCountError) throws java.io.IOException
java.io.IOExceptionprotected void writeTermTo(StreamOutput out) throws java.io.IOException
writeTermTo in class InternalTerms.Bucket<LongTerms.Bucket>java.io.IOExceptionpublic java.lang.String getKeyAsString()
public java.lang.Object getKey()
public java.lang.Number getKeyAsNumber()
public int compareKey(LongTerms.Bucket other)
KeyComparableMultiBucketsAggregation.Buckets key with another bucket.other - the bucket that contains the key to compare to.Comparable.compareTo(Object)protected final XContentBuilder keyToXContent(XContentBuilder builder) throws java.io.IOException
keyToXContent in class InternalTerms.Bucket<LongTerms.Bucket>java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class InternalTerms.Bucket<LongTerms.Bucket>public int hashCode()
hashCode in class InternalTerms.Bucket<LongTerms.Bucket>