Writeable, ToXContent, MultiBucketsAggregation.Bucket, Terms.Bucket, HasAggregations, KeyComparable<StringTerms.Bucket>public static class StringTerms.Bucket extends InternalTerms.Bucket<StringTerms.Bucket>
InternalTerms.Bucket.Reader<B extends InternalTerms.Bucket<B>>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Writer<V>aggregations, docCount, docCountError, format, showDocCountErrorEMPTY_PARAMS| Constructor | Description |
|---|---|
Bucket(org.apache.lucene.util.BytesRef 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 | Description |
|---|---|---|
int |
compareKey(StringTerms.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) |
getPropertygetAggregations, getDocCount, getDocCountError, reduce, toXContent, writeToclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFragmentpublic Bucket(org.apache.lucene.util.BytesRef 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<StringTerms.Bucket>java.io.IOExceptionpublic java.lang.Object getKey()
public java.lang.Number getKeyAsNumber()
public java.lang.String getKeyAsString()
public int compareKey(StringTerms.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<StringTerms.Bucket>java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
equals in class InternalTerms.Bucket<StringTerms.Bucket>public int hashCode()
hashCode in class InternalTerms.Bucket<StringTerms.Bucket>