Module org.elasticsearch.server
Class DoubleTerms.Bucket
java.lang.Object
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
org.elasticsearch.search.aggregations.bucket.terms.AbstractInternalTerms.AbstractTermsBucket<DoubleTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.InternalTerms.Bucket<DoubleTerms.Bucket>
org.elasticsearch.search.aggregations.bucket.terms.DoubleTerms.Bucket
- All Implemented Interfaces:
MultiBucketsAggregation.Bucket,Terms.Bucket,KeyComparable<DoubleTerms.Bucket>
- Enclosing class:
DoubleTerms
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalTerms.Bucket
InternalTerms.Bucket.Reader<B extends InternalTerms.Bucket<B>> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalTerms.Bucket
aggregations, docCount, format -
Method Summary
Modifier and TypeMethodDescriptionintcompareKey(DoubleTerms.Bucket other) Compare thisMultiBucketsAggregation.Bucketskeywith another bucket.booleangetKey()inthashCode()protected final XContentBuilderkeyToXContent(XContentBuilder builder) protected voidwriteTermTo(StreamOutput out) Methods inherited from class org.elasticsearch.search.aggregations.bucket.terms.InternalTerms.Bucket
bucketToXContent, getAggregations, getDocCount, getDocCountError, setAggregations, setDocCount, setDocCountError, updateDocCountErrorMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation.InternalBucket
getProperty
-
Method Details
-
writeTermTo
- Specified by:
writeTermToin classInternalTerms.Bucket<DoubleTerms.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:
-
keyToXContent
- Specified by:
keyToXContentin classInternalTerms.Bucket<DoubleTerms.Bucket>- Throws:
IOException
-
equals
- Overrides:
equalsin classInternalTerms.Bucket<DoubleTerms.Bucket>
-
hashCode
public int hashCode()- Overrides:
hashCodein classInternalTerms.Bucket<DoubleTerms.Bucket>
-