Query Policy
Definition at line 1141 of file as_policy.h.
#include "as_policy.h"
Data Fields | |
as_policy_base | base |
bool | deserialize |
bool | fail_on_cluster_change |
uint32_t | info_timeout |
as_policy_replica | replica |
bool | short_query |
Related Functions | |
(Note that these are not member functions.) | |
static void | as_policy_query_copy (const as_policy_query *src, as_policy_query *trg) |
static as_policy_query * | as_policy_query_init (as_policy_query *p) |
|
related |
Shallow copy as_policy_query values.
src | The source policy. |
trg | The target policy. |
Definition at line 1785 of file as_policy.h.
|
related |
Initialize as_policy_query to default values.
p | The policy to initialize. |
Definition at line 1765 of file as_policy.h.
References as_policy_base_query_init(), AS_POLICY_REPLICA_SEQUENCE, base, deserialize, fail_on_cluster_change, info_timeout, replica, and short_query.
as_policy_base as_policy_query::base |
Generic policy fields.
Definition at line 1146 of file as_policy.h.
bool as_policy_query::deserialize |
Should raw bytes representing a list or map 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 1175 of file as_policy.h.
bool as_policy_query::fail_on_cluster_change |
Terminate query if cluster is in migration state. If the server supports partition queries or the query filter is null (scan), this field is ignored.
Default: false
Definition at line 1167 of file as_policy.h.
uint32_t as_policy_query::info_timeout |
Timeout used when info command is used that checks for cluster changes before and after the query. This timeout is only used when fail_on_cluster_change is enabled.
Default: 10000 ms
Definition at line 1154 of file as_policy.h.
as_policy_replica as_policy_query::replica |
Algorithm used to determine target node.
Definition at line 1159 of file as_policy.h.
bool as_policy_query::short_query |
Is query expected to return less than 100 records per node. If true, the server will optimize the query for a small record set. This field is ignored for aggregation queries, background queries and server versions < 6.0.
Default: false
Definition at line 1185 of file as_policy.h.