public final class BatchUDFPolicy extends Object
| Modifier and Type | Field and Description |
|---|---|
CommitLevel |
commitLevel
Desired consistency guarantee when committing a command on the server.
|
boolean |
durableDelete
If the command results in a record deletion, leave a tombstone for the record.
|
int |
expiration
Record expiration.
|
Expression |
filterExp
Optional expression filter.
|
boolean |
onLockingOnly
Execute the write command only if the record is not already locked by this transaction.
|
boolean |
sendKey
Send user defined key in addition to hash digest.
|
| Constructor and Description |
|---|
BatchUDFPolicy()
Default constructor.
|
BatchUDFPolicy(BatchUDFPolicy other)
Copy constructor.
|
BatchUDFPolicy(BatchUDFPolicy other,
com.aerospike.client.configuration.ConfigurationProvider configProvider)
Copy policy from another policy AND override certain policy attributes if they exist in the configProvider.
|
BatchUDFPolicy(BatchUDFPolicy other,
com.aerospike.client.configuration.ConfigurationProvider configProvider,
boolean isDefaultPolicy)
Copy policy from another policy AND override certain policy attributes if they exist in the configProvider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setCommitLevel(CommitLevel commitLevel) |
void |
setDurableDelete(boolean durableDelete) |
void |
setExpiration(int expiration) |
void |
setFilterExp(Expression filterExp) |
void |
setOnLockingOnly(boolean onLockingOnly) |
void |
setSendKey(boolean sendKey) |
public Expression filterExp
BatchRecord.resultCode is set to
ResultCode.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
public CommitLevel commitLevel
Default: CommitLevel.COMMIT_ALL
public int expiration
Expiration values:
Default: 0
public boolean durableDelete
Default: false (do not tombstone deleted records).
public boolean onLockingOnly
ResultCode.MRT_ALREADY_LOCKED
error code.
This field is useful for safely retrying non-idempotent writes as an alternative to simply aborting the transaction.
Default: false.
public boolean sendKey
Default: false (do not send the user defined key)
public BatchUDFPolicy(BatchUDFPolicy other, com.aerospike.client.configuration.ConfigurationProvider configProvider)
public BatchUDFPolicy(BatchUDFPolicy other, com.aerospike.client.configuration.ConfigurationProvider configProvider, boolean isDefaultPolicy)
public BatchUDFPolicy(BatchUDFPolicy other)
public BatchUDFPolicy()
public void setFilterExp(Expression filterExp)
public void setCommitLevel(CommitLevel commitLevel)
public void setExpiration(int expiration)
public void setDurableDelete(boolean durableDelete)
public void setOnLockingOnly(boolean onLockingOnly)
public void setSendKey(boolean sendKey)
Copyright © 2012–2025 Aerospike, Inc. All rights reserved.