Interface KeyComparable<T extends MultiBucketsAggregation.Bucket & KeyComparable<T>>
-
- Type Parameters:
T
-MultiBucketsAggregation.Bucket
of the same type that also implementsKeyComparable
.
- All Known Implementing Classes:
InternalAutoDateHistogram.Bucket
,InternalDateHistogram.Bucket
,InternalHistogram.Bucket
,InternalTerms.Bucket
,LongTerms.Bucket
,StringTerms.Bucket
,UnmappedTerms.Bucket
public interface KeyComparable<T extends MultiBucketsAggregation.Bucket & KeyComparable<T>>
Defines behavior for comparingbucket keys
to imposes a total ordering of buckets of the same type.- See Also:
BucketOrder.key(boolean)
-
-
Method Summary
Modifier and Type Method Description int
compareKey(T other)
Compare thisMultiBucketsAggregation.Bucket
skey
with another bucket.
-
-
-
Method Detail
-
compareKey
int compareKey(T other)
Compare thisMultiBucketsAggregation.Bucket
skey
with 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)
-
-