Struct cassandra_cpp::Batch
[−]
[src]
pub struct Batch(_);
A group of statements that are executed as a single batch. Note: Batches are not supported by the binary protocol version 1.
Methods
impl Batch
[src]
fn new(batch_type: BatchType) -> Batch
[src]
Creates a new batch statement with batch type.
fn set_consistency(&mut self, consistency: Consistency) -> Result<&mut Self>
[src]
Sets the batch's consistency level
fn set_serial_consistency(
&mut self,
consistency: Consistency
) -> Result<&mut Self>
[src]
&mut self,
consistency: Consistency
) -> Result<&mut Self>
Sets the batch's serial consistency level.
Default: Not set
fn set_timestamp(&mut self, timestamp: i64) -> Result<&Self>
[src]
Sets the batch's timestamp.
fn set_retry_policy(&mut self, retry_policy: RetryPolicy) -> Result<&mut Self>
[src]
Sets the batch's retry policy.
fn set_custom_payload(
&mut self,
custom_payload: CustomPayload
) -> Result<&mut Self>
[src]
&mut self,
custom_payload: CustomPayload
) -> Result<&mut Self>
Sets the batch's custom payload.
fn add_statement(&mut self, statement: &Statement) -> Result<&Self>
[src]
Adds a statement to a batch.