QueryPolicy
in package
QueryPolicy encapsulates parameters for policy attributes used in query operations.
Table of Contents
Properties
- $exit_fast_on_exhausted_connection_pool : mixed
- $expected_duration : mixed
- $filter_expression : mixed
- $max_concurrent_nodes : mixed
- $max_retries : mixed
- $read_mode_ap : mixed
- $read_mode_sc : mixed
- $record_queue_size : mixed
- $send_key : mixed
- $sleep_multiplier : mixed
- $socket_timeout : mixed
- $total_timeout : mixed
- $use_compression : mixed
Methods
- __construct() : mixed
- getExitFastOnExhaustedConnectionPool() : bool
- getExpectedDuration() : QueryDuration
- QueryDuration represents the expected duration for a query operation in the Aerospike database.
- getFilterExpression() : Expression|null
- getMaxConcurrentNodes() : int
- *************************************************************************** MultiPolicy Attrs *************************************************************************** Maximum number of concurrent requests to server nodes at any point in time.
- getMaxRetries() : int
- *************************************************************************** ReadPolicy Attrs ***************************************************************************
- getReadModeAp() : ReadModeAP
- getReadModeSc() : ReadModeSC
- getRecordQueueSize() : int
- Number of records to place in queue before blocking.
- getSendKey() : bool
- getSleepMultiplier() : float
- getSocketTimeout() : int
- getTotalTimeout() : int
- getUseCompression() : bool
- setExitFastOnExhaustedConnectionPool() : mixed
- setExpectedDuration() : mixed
- setFilterExpression() : mixed
- setMaxConcurrentNodes() : mixed
- setMaxRetries() : mixed
- setReadModeAp() : mixed
- setReadModeSc() : mixed
- setRecordQueueSize() : mixed
- setSendKey() : mixed
- setSleepMultiplier() : mixed
- setSocketTimeout() : mixed
- setTotalTimeout() : mixed
- setUseCompression() : mixed
Properties
$exit_fast_on_exhausted_connection_pool
public
mixed
$exit_fast_on_exhausted_connection_pool
$expected_duration
public
mixed
$expected_duration
$filter_expression
public
mixed
$filter_expression
$max_concurrent_nodes
public
mixed
$max_concurrent_nodes
$max_retries
public
mixed
$max_retries
$read_mode_ap
public
mixed
$read_mode_ap
$read_mode_sc
public
mixed
$read_mode_sc
$record_queue_size
public
mixed
$record_queue_size
$send_key
public
mixed
$send_key
$sleep_multiplier
public
mixed
$sleep_multiplier
$socket_timeout
public
mixed
$socket_timeout
$total_timeout
public
mixed
$total_timeout
$use_compression
public
mixed
$use_compression
Methods
__construct()
public
__construct() : mixed
getExitFastOnExhaustedConnectionPool()
public
getExitFastOnExhaustedConnectionPool() : bool
Return values
boolgetExpectedDuration()
QueryDuration represents the expected duration for a query operation in the Aerospike database.
public
getExpectedDuration() : QueryDuration
It provides options for specifying whether a query is expected to return a large number of records per node (Long), a small number of records per node (Short), or a long query with relaxed read consistency for AP namespaces (LongRelaxAP). These options influence how the server optimizes query execution to meet the expected duration requirements.
Return values
QueryDurationgetFilterExpression()
public
getFilterExpression() : Expression|null
Return values
Expression|nullgetMaxConcurrentNodes()
*************************************************************************** MultiPolicy Attrs *************************************************************************** Maximum number of concurrent requests to server nodes at any point in time.
public
getMaxConcurrentNodes() : int
If there are 16 nodes in the cluster and maxConcurrentNodes is 8, then queries will be made to 8 nodes in parallel. When a query completes, a new query will be issued until all 16 nodes have been queried. Default (0) is to issue requests to all server nodes in parallel. 1 will to issue requests to server nodes one by one avoiding parallel queries.
Return values
intgetMaxRetries()
*************************************************************************** ReadPolicy Attrs ***************************************************************************
public
getMaxRetries() : int
Return values
intgetReadModeAp()
public
getReadModeAp() : ReadModeAP
Return values
ReadModeAPgetReadModeSc()
public
getReadModeSc() : ReadModeSC
Return values
ReadModeSCgetRecordQueueSize()
Number of records to place in queue before blocking.
public
getRecordQueueSize() : int
Records received from multiple server nodes will be placed in a queue. A separate goroutine consumes these records in parallel. If the queue is full, the producer goroutines will block until records are consumed.
Return values
intgetSendKey()
public
getSendKey() : bool
Return values
boolgetSleepMultiplier()
public
getSleepMultiplier() : float
Return values
floatgetSocketTimeout()
public
getSocketTimeout() : int
Return values
intgetTotalTimeout()
public
getTotalTimeout() : int
Return values
intgetUseCompression()
public
getUseCompression() : bool
Return values
boolsetExitFastOnExhaustedConnectionPool()
public
setExitFastOnExhaustedConnectionPool(bool $exit_fast_on_exhausted_connection_pool) : mixed
Parameters
- $exit_fast_on_exhausted_connection_pool : bool
setExpectedDuration()
public
setExpectedDuration(mixed $expected_duration) : mixed
Parameters
- $expected_duration : mixed
setFilterExpression()
public
setFilterExpression(mixed $filter_expression) : mixed
Parameters
- $filter_expression : mixed
setMaxConcurrentNodes()
public
setMaxConcurrentNodes(int $max_concurrent_nodes) : mixed
Parameters
- $max_concurrent_nodes : int
setMaxRetries()
public
setMaxRetries(int $max_retries) : mixed
Parameters
- $max_retries : int
setReadModeAp()
public
setReadModeAp(mixed $read_mode_ap) : mixed
Parameters
- $read_mode_ap : mixed
setReadModeSc()
public
setReadModeSc(mixed $read_mode_sc) : mixed
Parameters
- $read_mode_sc : mixed
setRecordQueueSize()
public
setRecordQueueSize(int $record_queue_size) : mixed
Parameters
- $record_queue_size : int
setSendKey()
public
setSendKey(bool $send_key) : mixed
Parameters
- $send_key : bool
setSleepMultiplier()
public
setSleepMultiplier(float $sleep_multiplier) : mixed
Parameters
- $sleep_multiplier : float
setSocketTimeout()
public
setSocketTimeout(int $timeout_millis) : mixed
Parameters
- $timeout_millis : int
setTotalTimeout()
public
setTotalTimeout(int $timeout_millis) : mixed
Parameters
- $timeout_millis : int
setUseCompression()
public
setUseCompression(bool $use_compression) : mixed
Parameters
- $use_compression : bool