Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Batch Builder

Otávio Santana edited this page Feb 13, 2014 · 2 revisions

The class Insert Builder is a really simple way to group multiple modification statements (insertions/updates and deletions) into a single statement.

Options

  • withConsistencyLevel: Sets the consistency level for the query
  • withTimeStamp: Option to set the timestamp for a modification query.
  • withTtl: Option to set the ttl for a modification query.
  • ifNotExists: Sets the 'IF NOT EXISTS' option for this INSERT statement.

addOperations Values

  • addOperations: Adds a new statement to this batch

Run

  • execute: execute the query.
  • executeAsync: insert the provided query asynchronously.
  • executeAsync(asynCallBack): execute the process asynchronous with asynCallBack.

To know more: Batch Builder