Package com.aerospike.client.exp
Class ExpWriteFlags
java.lang.Object
com.aerospike.client.exp.ExpWriteFlags
Expression write bit flags. Use BITWISE OR to combine flags. Example:
int flags = ExpWriteFlags.CREATE_ONLY | ExpWriteFlags.POLICY_NO_FAIL;
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
If expression results in nil value, then delete the bin.static final int
If bin does not exist, a new bin will be created.static final int
Default.static final int
Ignore failures caused by the expression resolving to unknown or a non-bin type.static final int
Do not raise error if operation is denied.static final int
If bin exists, the bin will be overwritten. -
Constructor Summary
-
Method Summary
-
Field Details
-
DEFAULT
public static final int DEFAULTDefault. Allow create or update.- See Also:
-
CREATE_ONLY
public static final int CREATE_ONLYIf bin does not exist, a new bin will be created. If bin exists, the operation will be denied. If bin exists, fail withResultCode.BIN_EXISTS_ERROR
whenPOLICY_NO_FAIL
is not set.- See Also:
-
UPDATE_ONLY
public static final int UPDATE_ONLYIf bin exists, the bin will be overwritten. If bin does not exist, the operation will be denied. If bin does not exist, fail withResultCode.BIN_NOT_FOUND
whenPOLICY_NO_FAIL
is not set.- See Also:
-
ALLOW_DELETE
public static final int ALLOW_DELETEIf expression results in nil value, then delete the bin. Otherwise, fail withResultCode.OP_NOT_APPLICABLE
whenPOLICY_NO_FAIL
is not set.- See Also:
-
POLICY_NO_FAIL
public static final int POLICY_NO_FAILDo not raise error if operation is denied.- See Also:
-
EVAL_NO_FAIL
public static final int EVAL_NO_FAILIgnore failures caused by the expression resolving to unknown or a non-bin type.- See Also:
-
-
Constructor Details
-
ExpWriteFlags
public ExpWriteFlags()
-