Package redis.clients.jedis.timeseries
Enum Class DuplicatePolicy
- All Implemented Interfaces:
Serializable,Comparable<DuplicatePolicy>,Constable,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 ConstantsEnum ConstantDescriptionAn error will occur for any out of order sampleIgnore the new valueOverride with latest valueOnly override if the value is higher than the existing valueOnly override if the value is lower than the existing valueIf a previous sample exists, add the new sample to it so that the updated value is -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getRaw()Get byte array.static DuplicatePolicyReturns the enum constant of this class with the specified name.static DuplicatePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK
An error will occur for any out of order sample -
FIRST
Ignore the new value -
LAST
Override with latest value -
MIN
Only override if the value is lower than the existing value -
MAX
Only override if the value is higher than the existing value -
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
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
-
getRaw
public byte[] getRaw()Description copied from interface:RawableGet byte array.
-