Package com.aerospike.client.cdt
Enum Class MapWriteMode
- All Implemented Interfaces:
Serializable
,Comparable<MapWriteMode>
,Constable
Unique key map write type.
This enum should only be used for server versions < 4.3.
MapWriteFlags
are recommended for server versions >= 4.3.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIf the key already exists, the write will fail.If the key already exists, the item will be overwritten.If the key already exists, the item will be overwritten. -
Method Summary
Modifier and TypeMethodDescriptionstatic MapWriteMode
Returns the enum constant of this class with the specified name.static MapWriteMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
If the key already exists, the item will be overwritten. If the key does not exist, the write will fail. -
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
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
-