Enum Class BatchConflictResolutionPolicy

java.lang.Object
java.lang.Enum<BatchConflictResolutionPolicy>
com.linkedin.davinci.replication.BatchConflictResolutionPolicy
All Implemented Interfaces:
Serializable, Comparable<BatchConflictResolutionPolicy>, Constable

public enum BatchConflictResolutionPolicy extends Enum<BatchConflictResolutionPolicy>
  • Enum Constant Details

    • BATCH_WRITE_LOSES

      public static final BatchConflictResolutionPolicy BATCH_WRITE_LOSES
      Incoming data from Batch push should always be overwritten by real-time updates.
    • USE_START_OF_PUSH_TIMESTAMP

      public static final BatchConflictResolutionPolicy 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

      public static final BatchConflictResolutionPolicy 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

      public static BatchConflictResolutionPolicy[] 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 BatchConflictResolutionPolicy 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
    • getValue

      public int getValue()
    • valueOf

      public static BatchConflictResolutionPolicy valueOf(int value)
      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 name
      NullPointerException - if the argument is null