public static class LongTerms.Bucket extends InternalTerms.Bucket<LongTerms.Bucket>
InternalTerms.Bucket.Reader<B extends InternalTerms.Bucket<B>>MultiBucketsAggregation.Bucket.SubAggregationComparator<B extends MultiBucketsAggregation.Bucket>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 |
|---|---|
java.lang.Object |
getKey() |
java.lang.Number |
getKeyAsNumber() |
java.lang.String |
getKeyAsString() |
protected XContentBuilder |
keyToXContent(XContentBuilder builder) |
protected void |
writeTermTo(StreamOutput out) |
getAggregations, getDocCount, getDocCountError, reduce, toXContent, writeTogetPropertyclone, equals, finalize, getClass, hashCode, 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()
getKeyAsNumber in class Terms.Bucketprotected final XContentBuilder keyToXContent(XContentBuilder builder) throws java.io.IOException
keyToXContent in class InternalTerms.Bucket<LongTerms.Bucket>java.io.IOException