Class InternalOrder

java.lang.Object
org.elasticsearch.search.aggregations.BucketOrder
org.elasticsearch.search.aggregations.InternalOrder
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject
Direct Known Subclasses:
InternalOrder.Aggregation

public abstract class InternalOrder extends BucketOrder
Implementations for MultiBucketsAggregation.Bucket ordering strategies.
  • Constructor Details

    • InternalOrder

      public InternalOrder()
  • Method Details

    • isCountDesc

      public static boolean isCountDesc(BucketOrder order)
      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

      public static boolean isKeyOrder(BucketOrder order)
      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

      public static boolean isKeyAsc(BucketOrder order)
      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

      public static boolean isKeyDesc(BucketOrder order)
      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.