All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields | Related Functions
as_policy_query Struct Reference

Detailed Description

Query Policy

Definition at line 1141 of file as_policy.h.

#include "as_policy.h"

+ Collaboration diagram for as_policy_query:

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_queryas_policy_query_init (as_policy_query *p)
 

Friends And Related Function Documentation

static void as_policy_query_copy ( const as_policy_query src,
as_policy_query trg 
)
related

Shallow copy as_policy_query values.

Parameters
srcThe source policy.
trgThe target policy.

Definition at line 1785 of file as_policy.h.

static as_policy_query * as_policy_query_init ( as_policy_query p)
related

Initialize as_policy_query to default values.

Parameters
pThe policy to initialize.
Returns
The initialized policy.

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.

Field Documentation

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.


The documentation for this struct was generated from the following file: