Package com.linkedin.davinci.replication
Enum Class BatchConflictResolutionPolicy
java.lang.Object
java.lang.Enum<BatchConflictResolutionPolicy>
com.linkedin.davinci.replication.BatchConflictResolutionPolicy
- All Implemented Interfaces:
Serializable
,Comparable<BatchConflictResolutionPolicy>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIncoming data from Batch push should always be overwritten by real-time updates.Per-record replication metadata is provided by the push job and stored for each key, enabling full conflict resolution granularity on a per field basis, just like when merging concurrent update operations.Start-Of-Push Control message's timestamp should be treated as the last update replication timestamp for all batch records, and hybrid writes wins only when their own logicalTimestamp are higher. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
valueOf
(int value) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static BatchConflictResolutionPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BATCH_WRITE_LOSES
Incoming data from Batch push should always be overwritten by real-time updates. -
USE_START_OF_PUSH_TIMESTAMP
Start-Of-Push Control message's timestamp should be treated as the last update replication timestamp for all batch records, and hybrid writes wins only when their own logicalTimestamp are higher. -
USE_PER_RECORD_LOGICAL_TIMESTAMP
Per-record replication metadata is provided by the push job and stored for each key, enabling full conflict resolution granularity on a per field basis, just like when merging concurrent update operations.
-
-
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
-
getValue
public int getValue() -
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:
value
- 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
-