![]() |
Batch parent policy.
Definition at line 969 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 |
int | read_touch_ttl_percent |
as_policy_replica | replica |
bool | respond_all_keys |
bool | send_set_name |
Related Symbols | |
(Note that these are not member symbols.) | |
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 1917 of file as_policy.h.
|
related |
Initialize as_policy_batch to default values.
p | The policy to initialize. |
Definition at line 1876 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, read_touch_ttl_percent, 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 1901 of file as_policy.h.
References 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 commands 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 1046 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 1058 of file as_policy.h.
as_policy_base as_policy_batch::base |
Generic policy fields.
Definition at line 974 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 1032 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 1100 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 985 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 991 of file as_policy.h.
int as_policy_batch::read_touch_ttl_percent |
Determine how record TTL (time to live) is affected on reads. When enabled, the server can efficiently operate as a read-based LRU cache where the least recently used records are expired. The value is expressed as a percentage of the TTL sent on the most recent write such that a read within this interval of the record’s end of life will generate a touch.
For example, if the most recent write had a TTL of 10 hours and read_touch_ttl_percent is set to 80, the next read within 8 hours of the record's end of life (equivalent to 2 hours after the most recent write) will result in a touch, resetting the TTL to another 10 hours.
Values:
Default: 0
Definition at line 1012 of file as_policy.h.
as_policy_replica as_policy_batch::replica |
Algorithm used to determine target node.
Definition at line 979 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 1080 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 1092 of file as_policy.h.