Enum Class StatisticParameterType

java.lang.Object
java.lang.Enum<StatisticParameterType>
io.meeds.analytics.constant.StatisticParameterType
All Implemented Interfaces:
Serializable, Comparable<StatisticParameterType>, Constable

public enum StatisticParameterType extends Enum<StatisticParameterType>
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.
  • Enum Constant Details

  • Method Details

    • values

      public static StatisticParameterType[] 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 StatisticParameterType 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
    • write

      public void write(StatisticData statisticData, String key, Object value)
      Writes the value on the statistic data with the writer of this type.
      Parameters:
      statisticData - the event
      key - the parameter name
      value - the value, ignored when null