Enum Class MapWriteMode

java.lang.Object
java.lang.Enum<MapWriteMode>
com.aerospike.client.cdt.MapWriteMode
All Implemented Interfaces:
Serializable, Comparable<MapWriteMode>, Constable

public enum MapWriteMode extends Enum<MapWriteMode>
Unique key map write type. This enum should only be used for server versions < 4.3. MapWriteFlags are recommended for server versions >= 4.3.
  • Enum Constant Details

    • UPDATE

      public static final MapWriteMode UPDATE
      If the key already exists, the item will be overwritten. If the key does not exist, a new item will be created.
    • UPDATE_ONLY

      public static final MapWriteMode UPDATE_ONLY
      If the key already exists, the item will be overwritten. If the key does not exist, the write will fail.
    • CREATE_ONLY

      public static final MapWriteMode CREATE_ONLY
      If the key already exists, the write will fail. If the key does not exist, a new item will be created.
  • Method Details

    • values

      public static MapWriteMode[] 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 MapWriteMode 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