Package com.aerospike.client.cdt
Class MapWriteFlags
java.lang.Object
com.aerospike.client.cdt.MapWriteFlags
Map write bit flags. Use BITWISE OR to combine flags. Example:
int flags = MapWriteFlags.UPDATE_ONLY | MapWriteFlags.NO_FAIL | MapWriteFlags.PARTIAL;
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
If the key already exists, the item will be denied.static final int
Default.static final int
Do not raise error if a map item is denied due to write flag constraints.static final int
Allow other valid map items to be committed if a map item is denied due to write flag constraints.static final int
If the key already exists, the item will be overwritten. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT
public static final int DEFAULTDefault. Allow create or update.- See Also:
-
CREATE_ONLY
public static final int CREATE_ONLYIf the key already exists, the item will be denied. If the key does not exist, a new item will be created.- See Also:
-
UPDATE_ONLY
public static final int UPDATE_ONLYIf the key already exists, the item will be overwritten. If the key does not exist, the item will be denied.- See Also:
-
NO_FAIL
public static final int NO_FAILDo not raise error if a map item is denied due to write flag constraints.- See Also:
-
PARTIAL
public static final int PARTIALAllow other valid map items to be committed if a map item is denied due to write flag constraints.- See Also:
-
-
Constructor Details
-
MapWriteFlags
public MapWriteFlags()
-