Module org.elasticsearch.server
Interface KeyComparable<T extends MultiBucketsAggregation.Bucket & KeyComparable<T>>
- Type Parameters:
T-MultiBucketsAggregation.Bucketof the same type that also implementsKeyComparable.
- All Known Implementing Classes:
AbstractInternalTerms.AbstractTermsBucket,DoubleTerms.Bucket,InternalDateHistogram.Bucket,InternalHistogram.Bucket,InternalIpPrefix.Bucket,InternalRareTerms.Bucket,InternalTerms.Bucket,InternalVariableWidthHistogram.Bucket,LongRareTerms.Bucket,LongTerms.Bucket,StringRareTerms.Bucket,StringTerms.Bucket,UnmappedRareTerms.Bucket,UnmappedTerms.Bucket
public interface KeyComparable<T extends MultiBucketsAggregation.Bucket & KeyComparable<T>>
Defines behavior for comparing
bucket keys to imposes a total ordering
of buckets of the same type.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintcompareKey(T other) Compare thisMultiBucketsAggregation.Bucketskeywith another bucket.
-
Method Details
-
compareKey
Compare 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:
-