Batch parent policy.
Definition at line 823 of file as_policy.h.
#include "as_policy.h"
Data Fields | |
bool | allow_inline |
bool | allow_inline_ssd |
as_policy_base | base |
bool | concurrent |
bool | deserialize |
as_policy_read_mode_ap | read_mode_ap |
as_policy_read_mode_sc | read_mode_sc |
as_policy_replica | replica |
bool | respond_all_keys |
bool | send_set_name |
Related Functions | |
(Note that these are not member functions.) | |
static void | as_policy_batch_copy (const as_policy_batch *src, as_policy_batch *trg) |
static as_policy_batch * | as_policy_batch_init (as_policy_batch *p) |
static as_policy_batch * | as_policy_batch_parent_write_init (as_policy_batch *p) |
|
related |
Shallow copy as_policy_batch values.
src | The source policy. |
trg | The target policy. |
Definition at line 1656 of file as_policy.h.
|
related |
Initialize as_policy_batch to default values.
p | The policy to initialize. |
Definition at line 1616 of file as_policy.h.
References allow_inline, allow_inline_ssd, as_policy_base_read_init(), AS_POLICY_READ_MODE_AP_DEFAULT, AS_POLICY_READ_MODE_SC_DEFAULT, AS_POLICY_REPLICA_SEQUENCE, base, concurrent, deserialize, read_mode_ap, read_mode_sc, replica, respond_all_keys, and send_set_name.
|
related |
Initialize as_policy_batch to default values when writes may occur.
p | The policy to initialize. |
Definition at line 1640 of file as_policy.h.
References as_policy_batch_init(), base, and as_policy_base::max_retries.
bool as_policy_batch::allow_inline |
Allow batch to be processed immediately in the server's receiving thread for in-memory namespaces. If false, the batch will always be processed in separate service threads.
For batch transactions with smaller sized records (<= 1K per record), inline processing will be significantly faster on in-memory namespaces.
Inline processing can introduce the possibility of unfairness because the server can process the entire batch before moving onto the next command.
Default: true
Definition at line 879 of file as_policy.h.
bool as_policy_batch::allow_inline_ssd |
Allow batch to be processed immediately in the server's receiving thread for SSD namespaces. If false, the batch will always be processed in separate service threads. Server versions < 6.0 ignore this field.
Inline processing can introduce the possibility of unfairness because the server can process the entire batch before moving onto the next command.
Default: false
Definition at line 891 of file as_policy.h.
as_policy_base as_policy_batch::base |
Generic policy fields.
Definition at line 828 of file as_policy.h.
bool as_policy_batch::concurrent |
Determine if batch commands to each server are run in parallel threads.
Values:
Definition at line 865 of file as_policy.h.
bool as_policy_batch::deserialize |
Should raw bytes be deserialized to as_list or as_map. Set to false for backup programs that just need access to raw bytes.
Default: true
Definition at line 933 of file as_policy.h.
as_policy_read_mode_ap as_policy_batch::read_mode_ap |
Read policy for AP (availability) namespaces. Default: AS_POLICY_READ_MODE_AP_ONE
Definition at line 839 of file as_policy.h.
as_policy_read_mode_sc as_policy_batch::read_mode_sc |
Read policy for SC (strong consistency) namespaces. Default: AS_POLICY_READ_MODE_SC_SESSION
Definition at line 845 of file as_policy.h.
as_policy_replica as_policy_batch::replica |
Algorithm used to determine target node.
Definition at line 833 of file as_policy.h.
bool as_policy_batch::respond_all_keys |
Should all batch keys be attempted regardless of errors. This field is used on both the client and server. The client handles node specific errors and the server handles key specific errors.
If true, every batch key is attempted regardless of previous key specific errors. Node specific errors such as timeouts stop keys to that node, but keys directed at other nodes will continue to be processed.
If false, the server will stop the batch to its node on most key specific errors. The exceptions are AEROSPIKE_ERR_RECORD_NOT_FOUND and AEROSPIKE_FILTERED_OUT which never stop the batch. The client will stop the entire batch on node specific errors for sync commands that are run in sequence (concurrent == false). The client will not stop the entire batch for async commands or sync commands run in parallel.
Server versions < 6.0 do not support this field and treat this value as false for key specific errors.
Default: true
Definition at line 913 of file as_policy.h.
bool as_policy_batch::send_set_name |
This method is deprecated and will eventually be removed. The set name is now always sent for every distinct namespace/set in the batch.
Send set name field to server for every key in the batch for batch index protocol. This is necessary for batch writes and batch reads when authentication is enabled and security roles are defined on a per set basis.
Definition at line 925 of file as_policy.h.