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
Nested ClassesModifier and TypeClassDescriptionstatic classMultiBucketsAggregation.Bucketordering strategy to sort by a sub-aggregation.static classMultiBucketsAggregation.Bucketordering strategy to sort by multiple criteria.static classContains logic for parsing aBucketOrderfrom aXContentParser.static classContains logic for reading/writingBucketOrderfrom/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.ParamsNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCountDesc(BucketOrder order)Determine if the ordering strategy is sorting on bucket count descending.static booleanisKeyAsc(BucketOrder order)Determine if the ordering strategy is sorting on bucket key ascending.static booleanisKeyDesc(BucketOrder order)Determine if the ordering strategy is sorting on bucket key descending.static booleanisKeyOrder(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, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContentMethods 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:
trueif the ordering strategy is sorting on bucket count descending,falseotherwise.
-
isKeyOrder
Determine if the ordering strategy is sorting on bucket key (ascending or descending).- Parameters:
order- bucket ordering strategy to check.- Returns:
trueif the ordering strategy is sorting on bucket key,falseotherwise.
-
isKeyAsc
Determine if the ordering strategy is sorting on bucket key ascending.- Parameters:
order- bucket ordering strategy to check.- Returns:
trueif the ordering strategy is sorting on bucket key ascending,falseotherwise.
-
isKeyDesc
Determine if the ordering strategy is sorting on bucket key descending.- Parameters:
order- bucket ordering strategy to check.- Returns:
trueif the ordering strategy is sorting on bucket key descending,falseotherwise.
-