Enum Class DuplicatePolicy

java.lang.Object
java.lang.Enum<DuplicatePolicy>
redis.clients.jedis.timeseries.DuplicatePolicy
All Implemented Interfaces:
Serializable, Comparable<DuplicatePolicy>, Constable, Rawable

public enum DuplicatePolicy extends Enum<DuplicatePolicy> implements Rawable
Policy that will define handling of duplicate samples.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    An error will occur for any out of order sample
    Ignore the new value
    Override with latest value
    Only override if the value is higher than the existing value
    Only override if the value is lower than the existing value
    If a previous sample exists, add the new sample to it so that the updated value is
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final byte[]
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Get byte array.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • BLOCK

      public static final DuplicatePolicy BLOCK
      An error will occur for any out of order sample
    • FIRST

      public static final DuplicatePolicy FIRST
      Ignore the new value
    • LAST

      public static final DuplicatePolicy LAST
      Override with latest value
    • MIN

      public static final DuplicatePolicy MIN
      Only override if the value is lower than the existing value
    • MAX

      public static final DuplicatePolicy MAX
      Only override if the value is higher than the existing value
    • SUM

      public static final DuplicatePolicy SUM
      If a previous sample exists, add the new sample to it so that the updated value is
  • Field Details

    • raw

      private final byte[] raw
  • Constructor Details

    • DuplicatePolicy

      private DuplicatePolicy()
  • Method Details

    • values

      public static DuplicatePolicy[] 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 DuplicatePolicy 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
    • getRaw

      public byte[] getRaw()
      Description copied from interface: Rawable
      Get byte array.
      Specified by:
      getRaw in interface Rawable
      Returns:
      binary