Class LongRareTerms.Bucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms.Bucket<LongRareTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.LongRareTerms.Bucket
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,MultiBucketsAggregation.Bucket,RareTerms.Bucket,HasAggregations,KeyComparable<LongRareTerms.Bucket>
- Enclosing class:
- LongRareTerms
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms.Bucket
InternalRareTerms.Bucket.Reader<B extends InternalRareTerms.Bucket<B>>Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms.Bucket
aggregations, docCount, formatFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionBucket(long term, long docCount, InternalAggregations aggregations, DocValueFormat format)Bucket(StreamInput in, DocValueFormat format)Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionintcompareKey(LongRareTerms.Bucket other)Compare thisMultiBucketsAggregation.Bucketskeywith another bucket.booleangetKey()inthashCode()protected org.elasticsearch.common.xcontent.XContentBuilderkeyToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder)protected voidwriteTermTo(StreamOutput out)Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalRareTerms.Bucket
getAggregations, getDocCount, toXContent, writeToMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContent
isFragment
-
Constructor Details
-
Bucket
-
Bucket
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTermTo
- Specified by:
writeTermToin classInternalRareTerms.Bucket<LongRareTerms.Bucket>- Throws:
IOException
-
getKeyAsString
- Returns:
- The key associated with the bucket as a string
-
getKey
- Returns:
- The key associated with the bucket
-
getKeyAsNumber
-
compareKey
Description copied from interface:KeyComparableCompare thisMultiBucketsAggregation.Bucketskeywith another bucket.- Parameters:
other- the bucket that contains the key to compare to.- Returns:
- a negative integer, zero, or a positive integer as this buckets key is less than, equal to, or greater than the other buckets key.
- See Also:
Comparable.compareTo(Object)
-
keyToXContent
protected final org.elasticsearch.common.xcontent.XContentBuilder keyToXContent(org.elasticsearch.common.xcontent.XContentBuilder builder) throws IOException- Specified by:
keyToXContentin classInternalRareTerms.Bucket<LongRareTerms.Bucket>- Throws:
IOException
-
equals
- Overrides:
equalsin classInternalRareTerms.Bucket<LongRareTerms.Bucket>
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalRareTerms.Bucket<LongRareTerms.Bucket>
-