Package io.meeds.analytics.constant
Enum Class StatisticParameterType
- All Implemented Interfaces:
Serializable,Comparable<StatisticParameterType>,Constable
The typed writers of
StatisticData, so that a parameter written by
name from a table gets the Elasticsearch mapping of its type: a keyword for
an id or an enumeration, a long for a count or a timestamp, a boolean.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic StatisticParameterTypeReturns the enum constant of this class with the specified name.static StatisticParameterType[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwrite(StatisticData statisticData, String key, Object value) Writes the value on the statistic data with the writer of this type.
-
Enum Constant Details
-
KEYWORD
-
LONG
-
BOOLEAN
-
-
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
-
write
Writes the value on the statistic data with the writer of this type.- Parameters:
statisticData- the eventkey- the parameter namevalue- the value, ignored when null
-