Package com.aerospike.client.policy
Class BatchDeletePolicy
java.lang.Object
com.aerospike.client.policy.BatchDeletePolicy
Policy attributes used in batch delete commands.
-
Field Summary
Modifier and TypeFieldDescriptionDesired consistency guarantee when committing a transaction on the server.boolean
If the transaction results in a record deletion, leave a tombstone for the record.Optional expression filter.int
Expected generation.Qualify how to handle record deletes based on record generation.boolean
Send user defined key in addition to hash digest. -
Constructor Summary
ConstructorDescriptionDefault constructor.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCommitLevel
(CommitLevel commitLevel) void
setDurableDelete
(boolean durableDelete) void
setFilterExp
(Expression filterExp) void
setGeneration
(int generation) void
setGenerationPolicy
(GenerationPolicy generationPolicy) void
setSendKey
(boolean sendKey)
-
Field Details
-
filterExp
Optional expression filter. If filterExp exists and evaluates to false, the specific batch key request is not performed andBatchRecord.resultCode
is set toResultCode.FILTERED_OUT
.If exists, this filter overrides the batch parent filter
Policy.filterExp
for the specific key in batch commands that allow a different policy per key. Otherwise, this filter is ignored.Default: null
-
commitLevel
Desired consistency guarantee when committing a transaction on the server. The default (COMMIT_ALL) indicates that the server should wait for master and all replica commits to be successful before returning success to the client.Default: CommitLevel.COMMIT_ALL
-
generationPolicy
Qualify how to handle record deletes based on record generation. The default (NONE) indicates that the generation is not used to restrict deletes.Default: GenerationPolicy.NONE
-
generation
public int generationExpected generation. Generation is the number of times a record has been modified (including creation) on the server. This field is only relevant when generationPolicy is not NONE.Default: 0
-
durableDelete
public boolean durableDeleteIf the transaction results in a record deletion, leave a tombstone for the record. This prevents deleted records from reappearing after node failures. Valid for Aerospike Server Enterprise Edition only.Default: false (do not tombstone deleted records).
-
sendKey
public boolean sendKeySend user defined key in addition to hash digest. If true, the key will be stored with the tombstone record on the server.Default: false (do not send the user defined key)
-
-
Constructor Details
-
BatchDeletePolicy
Copy constructor. -
BatchDeletePolicy
public BatchDeletePolicy()Default constructor.
-
-
Method Details
-
setFilterExp
-
setCommitLevel
-
setGenerationPolicy
-
setGeneration
public void setGeneration(int generation) -
setDurableDelete
public void setDurableDelete(boolean durableDelete) -
setSendKey
public void setSendKey(boolean sendKey)
-