public enum MapWriteMode extends Enum<MapWriteMode>
MapWriteFlags
are recommended for server versions >= 4.3.Enum Constant and Description |
---|
CREATE_ONLY
If the key already exists, the write will fail.
|
UPDATE
If the key already exists, the item will be overwritten.
|
UPDATE_ONLY
If the key already exists, the item will be overwritten.
|
Modifier and Type | Method and Description |
---|---|
static MapWriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MapWriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapWriteMode UPDATE
public static final MapWriteMode UPDATE_ONLY
public static final MapWriteMode CREATE_ONLY
public static MapWriteMode[] values()
for (MapWriteMode c : MapWriteMode.values()) System.out.println(c);
public static MapWriteMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright ? 2012–2018 Aerospike, Inc. All rights reserved.