Enum Class SummationMode
java.lang.Object
java.lang.Enum<SummationMode>
org.elasticsearch.xpack.esql.expression.function.aggregate.SummationMode
- All Implemented Interfaces:
Serializable,Comparable<SummationMode>,Constable
Specifies the summation algorithm to use for aggregating floating point values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default mode in regular aggregations.The default mode in time-series aggregations. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SummationModefromLiteral(Expression literal) static SummationModeReturns the enum constant of this class with the specified name.static SummationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPENSATED
The default mode in regular aggregations. Uses Kahan summation for improved floating point precision. -
LOSSY
The default mode in time-series aggregations. Uses simple summation, allowing loss of precision for performance.
-
-
Field Details
-
COMPENSATED_LITERAL
-
LOSSY_LITERAL
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromLiteral
-