Struct aerospike::policy::BatchPolicy
source · pub struct BatchPolicy {
pub base_policy: BasePolicy,
pub concurrency: Concurrency,
pub allow_inline: bool,
pub send_set_name: bool,
pub filter_expression: Option<FilterExpression>,
}
Expand description
BatchPolicy
encapsulates parameters for all batch operations.
Fields§
§base_policy: BasePolicy
Base policy instance
concurrency: Concurrency
Concurrency mode for batch requests: Sequential or Parallel (with optional max. no of parallel threads).
allow_inline: bool
Allow batch to be processed immediately in the server’s receiving thread when the server deems it to be appropriate. If false, the batch will always be processed in separate transaction threads.
For batch exists or batch reads of smaller sized records (<= 1K per record), inline processing will be significantly faster on “in memory” namespaces. The server disables inline processing on disk based namespaces regardless of this policy field.
Inline processing can introduce the possibility of unfairness because the server can process the entire batch before moving onto the next command.
Default: true
send_set_name: bool
Send set name field to server for every key in the batch. This is only necessary when authentication is enabled and security roles are defined on a per-set basis.
Default: false
filter_expression: Option<FilterExpression>
Optional Filter Expression
Implementations§
source§impl BatchPolicy
impl BatchPolicy
sourcepub const fn filter_expression(&self) -> &Option<FilterExpression>
pub const fn filter_expression(&self) -> &Option<FilterExpression>
Get the current Filter Expression
Trait Implementations§
source§impl Clone for BatchPolicy
impl Clone for BatchPolicy
source§fn clone(&self) -> BatchPolicy
fn clone(&self) -> BatchPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchPolicy
impl Debug for BatchPolicy
Auto Trait Implementations§
impl RefUnwindSafe for BatchPolicy
impl Send for BatchPolicy
impl Sync for BatchPolicy
impl Unpin for BatchPolicy
impl UnwindSafe for BatchPolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Policy for Twhere
T: PolicyLike,
impl<T> Policy for Twhere T: PolicyLike,
source§fn consistency_level(&self) -> &ConsistencyLevel
fn consistency_level(&self) -> &ConsistencyLevel
fn deadline(&self) -> Option<Instant>
source§fn timeout(&self) -> Option<Duration>
fn timeout(&self) -> Option<Duration>
source§fn max_retries(&self) -> Option<usize>
fn max_retries(&self) -> Option<usize>
max_retries
is exceeded, the abort will occur even if
the timeout has not yet been exceeded.