Interface KeyComparable<T extends MultiBucketsAggregation.Bucket & KeyComparable<T>>
-
- Type Parameters:
T-MultiBucketsAggregation.Bucketof the same type that also implementsKeyComparable.
- All Known Implementing Classes:
InternalAutoDateHistogram.Bucket,InternalComposite.InternalBucket,InternalDateHistogram.Bucket,InternalHistogram.Bucket,InternalRareTerms.Bucket,InternalTerms.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 comparingbucket keysto imposes a total ordering of buckets of the same type.- See Also:
BucketOrder.key(boolean)
-
-
Method Summary
Modifier and Type Method Description intcompareKey(T other)Compare thisMultiBucketsAggregation.Bucketskeywith another bucket.
-
-
-
Method Detail
-
compareKey
int compareKey(T other)
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:
Comparable.compareTo(Object)
-
-