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
public abstract class InternalOrder extends BucketOrder
Implementations for
MultiBucketsAggregation.Bucket ordering strategies.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalOrder.AggregationMultiBucketsAggregation.Bucketordering strategy to sort by a sub-aggregation.static classInternalOrder.CompoundOrderMultiBucketsAggregation.Bucketordering strategy to sort by multiple criteria.static classInternalOrder.ParserContains logic for parsing aBucketOrderfrom aXContentParser.static classInternalOrder.StreamsContains 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
-
Constructor Summary
Constructors Constructor Description InternalOrder() -
Method Summary
Modifier and Type Method Description static 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, writeTo
-
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.
-