java.lang.Object
java.lang.Enum<SummationMode>
org.elasticsearch.xpack.esql.expression.function.aggregate.SummationMode
All Implemented Interfaces:
Serializable, Comparable<SummationMode>, Constable

public enum SummationMode extends Enum<SummationMode>
Specifies the summation algorithm to use for aggregating floating point values.
  • Enum Constant Details

    • COMPENSATED

      public static final SummationMode COMPENSATED
      The default mode in regular aggregations. Uses Kahan summation for improved floating point precision.
    • LOSSY

      public static final SummationMode LOSSY
      The default mode in time-series aggregations. Uses simple summation, allowing loss of precision for performance.
  • Field Details

    • COMPENSATED_LITERAL

      public static final Literal COMPENSATED_LITERAL
    • LOSSY_LITERAL

      public static final Literal LOSSY_LITERAL
  • Method Details

    • values

      public static SummationMode[] 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 SummationMode 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
    • fromLiteral

      public static SummationMode fromLiteral(Expression literal)