Class InternalOrder
java.lang.Object
org.opensearch.search.aggregations.BucketOrder
org.opensearch.search.aggregations.InternalOrder
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
,org.opensearch.core.xcontent.ToXContent
,org.opensearch.core.xcontent.ToXContentObject
- Direct Known Subclasses:
InternalOrder.Aggregation
Implementations for
MultiBucketsAggregation.Bucket
ordering strategies.- Opensearch.internal:
-
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.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.opensearch.core.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.opensearch.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.opensearch.core.xcontent.ToXContent
toXContent
Methods inherited from interface org.opensearch.core.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.
-