Enum Class CardinalityExecutionMode

java.lang.Object
java.lang.Enum<CardinalityExecutionMode>
co.elastic.clients.elasticsearch._types.aggregations.CardinalityExecutionMode
All Implemented Interfaces:
JsonEnum, JsonpSerializable, Serializable, Comparable<CardinalityExecutionMode>, Constable

@JsonpDeserializable public enum CardinalityExecutionMode extends Enum<CardinalityExecutionMode> implements JsonEnum
See Also:
  • Enum Constant Details

    • GlobalOrdinals

      public static final CardinalityExecutionMode GlobalOrdinals
      Run the aggregation by using global ordinals of the field and resolving those values after finishing a shard.
    • SegmentOrdinals

      public static final CardinalityExecutionMode SegmentOrdinals
      Run the aggregation by using segment ordinal values and resolving those values after each segment.
    • Direct

      public static final CardinalityExecutionMode Direct
      Run the aggregation by using field values directly.
    • SaveMemoryHeuristic

      public static final CardinalityExecutionMode SaveMemoryHeuristic
      Heuristic-based mode, default in Elasticsearch 8.3 and earlier.
    • SaveTimeHeuristic

      public static final CardinalityExecutionMode SaveTimeHeuristic
      Heuristic-based mode, default in Elasticsearch 8.4 and later.
  • Field Details

  • Method Details

    • values

      public static CardinalityExecutionMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CardinalityExecutionMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • jsonValue

      public String jsonValue()
      Specified by:
      jsonValue in interface JsonEnum