Enum TTLResolutionPolicy
- java.lang.Object
-
- java.lang.Enum<TTLResolutionPolicy>
-
- com.linkedin.venice.hadoop.input.kafka.ttl.TTLResolutionPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TTLResolutionPolicy>
public enum TTLResolutionPolicy extends java.lang.Enum<TTLResolutionPolicy>
The policy controls the TTL behavior regarding how batch writes are treated. As of writing, only real-time write can be TTLed/supported.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RT_WRITE_ONLY
Only real-time(RT) data, which can contain the RMD, will be TTLed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getValue()
static TTLResolutionPolicy
valueOf(int value)
Returns the enum constant of this type with the specified name.static TTLResolutionPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TTLResolutionPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RT_WRITE_ONLY
public static final TTLResolutionPolicy RT_WRITE_ONLY
Only real-time(RT) data, which can contain the RMD, will be TTLed. If the data doesn't contain RMD, it means the data comes from batch or the store is not AA-enabled, this policy will fail the VPJ job.
-
-
Method Detail
-
values
public static TTLResolutionPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TTLResolutionPolicy c : TTLResolutionPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TTLResolutionPolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
-
valueOf
public static TTLResolutionPolicy valueOf(int value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-