Class InternalOrder
java.lang.Object
org.elasticsearch.search.aggregations.BucketOrder
org.elasticsearch.search.aggregations.InternalOrder
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
- Direct Known Subclasses:
InternalOrder.Aggregation
Implementations for
MultiBucketsAggregation.Bucket
ordering strategies.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
MultiBucketsAggregation.Bucket
ordering strategy to sort by a sub-aggregation.static class
MultiBucketsAggregation.Bucket
ordering strategy to sort by multiple criteria.static class
Contains logic for parsing aBucketOrder
from aXContentParser
.static class
Contains logic for reading/writingBucketOrder
from/to streams.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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isCountDesc(BucketOrder order)
Determine if the ordering strategy is sorting on bucket count descending.static boolean
isKeyAsc(BucketOrder order)
Determine if the ordering strategy is sorting on bucket key ascending.static boolean
isKeyDesc(BucketOrder order)
Determine if the ordering strategy is sorting on bucket key descending.static boolean
isKeyOrder(BucketOrder order)
Determine if the ordering strategy is sorting on bucket key (ascending or descending).Methods inherited from class org.elasticsearch.search.aggregations.BucketOrder
aggregation, aggregation, comparator, compound, compound, count, equals, hashCode, key, partiallyBuiltBucketComparator, toString, validate, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
InternalOrder
public InternalOrder()
-
-
Method Details
-
isCountDesc
Determine if the ordering strategy is sorting on bucket count descending.- Parameters:
order
- bucket ordering strategy to check.- Returns:
true
if the ordering strategy is sorting on bucket count descending,false
otherwise.
-
isKeyOrder
Determine if the ordering strategy is sorting on bucket key (ascending or descending).- Parameters:
order
- bucket ordering strategy to check.- Returns:
true
if the ordering strategy is sorting on bucket key,false
otherwise.
-
isKeyAsc
Determine if the ordering strategy is sorting on bucket key ascending.- Parameters:
order
- bucket ordering strategy to check.- Returns:
true
if the ordering strategy is sorting on bucket key ascending,false
otherwise.
-
isKeyDesc
Determine if the ordering strategy is sorting on bucket key descending.- Parameters:
order
- bucket ordering strategy to check.- Returns:
true
if the ordering strategy is sorting on bucket key descending,false
otherwise.
-