![]() |
Scan Policy
Definition at line 1422 of file as_policy.h.
#include "as_policy.h"
Data Fields | |
as_policy_base | base |
bool | durable_delete |
uint64_t | max_records |
uint32_t | records_per_second |
as_policy_replica | replica |
uint32_t | ttl |
Related Symbols | |
(Note that these are not member symbols.) | |
static void | as_policy_scan_copy (const as_policy_scan *src, as_policy_scan *trg) |
static as_policy_scan * | as_policy_scan_init (as_policy_scan *p) |
|
related |
Shallow copy as_policy_scan values.
src | The source policy. |
trg | The target policy. |
Definition at line 2015 of file as_policy.h.
|
related |
Initialize as_policy_scan to default values.
p | The policy to initialize. |
Definition at line 1995 of file as_policy.h.
References as_policy_base_query_init(), AS_POLICY_REPLICA_SEQUENCE, base, durable_delete, max_records, records_per_second, replica, and ttl.
as_policy_base as_policy_scan::base |
Generic policy fields.
Definition at line 1427 of file as_policy.h.
bool as_policy_scan::durable_delete |
If the command 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).
Definition at line 1472 of file as_policy.h.
uint64_t as_policy_scan::max_records |
Approximate number of records to return to client. This number is divided by the number of nodes involved in the scan. The actual number of records returned may be less than max_records if node record counts are small and unbalanced across nodes.
Default: 0 (do not limit record count)
Definition at line 1437 of file as_policy.h.
uint32_t as_policy_scan::records_per_second |
Limit returned records per second (rps) rate for each server. Do not apply rps limit if records_per_second is zero.
Default: 0
Definition at line 1445 of file as_policy.h.
as_policy_replica as_policy_scan::replica |
Algorithm used to determine target node.
Definition at line 1450 of file as_policy.h.
uint32_t as_policy_scan::ttl |
The default time-to-live (expiration) of the record in seconds. This field will only be used on background scan writes if "as_scan.ttl" is set to AS_RECORD_CLIENT_DEFAULT_TTL.
There are also special values that can be set in the record ttl:
Definition at line 1463 of file as_policy.h.