Enum Class Aggregation
- All Implemented Interfaces:
Serializable
,Comparable<Aggregation>
,Constable
Time Series Aggregation functions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionArithmetic mean of all valuesNumber of values.Value with lowest timestamp in the bucketValue with highest timestamp in the bucketMaximum valueMinimum valueDifference between the highest and the lowest valuePopulation standard deviation of the valuesSample standard deviation of the valuesSum of all valuesTime-weighted average over the bucket's timeframe (since RedisTimeSeries v1.8)Population variance of the valuesSample variance of the values -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static Aggregation
Returns the enum constant of this class with the specified name.static Aggregation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVG
Arithmetic mean of all values -
SUM
Sum of all values -
MIN
Minimum value -
MAX
Maximum value -
RANGE
Difference between the highest and the lowest value -
COUNT
Number of values. -
FIRST
Value with lowest timestamp in the bucket -
LAST
Value with highest timestamp in the bucket -
STD_P
Population standard deviation of the values -
STD_S
Sample standard deviation of the values -
VAR_P
Population variance of the values -
VAR_S
Sample variance of the values -
TWA
Time-weighted average over the bucket's timeframe (since RedisTimeSeries v1.8)
-
-
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
-
toString
- Overrides:
toString
in classEnum<Aggregation>
-