PHP Класс Cassandra\BatchStatement

There are 3 types of batch statements: * Cassandra::BATCH_LOGGED - this is the default batch type. This batch guarantees that either all or none of its statements will be executed. This behavior is achieved by writing a batch log on the coordinator, which slows down the execution somewhat. * Cassandra::BATCH_UNLOGGED - this batch will not be verified when executed, which makes it faster than a LOGGED batch, but means that some of its statements might fail, while others - succeed. * Cassandra::BATCH_COUNTER - this batch is used for counter updates, which are, unlike other writes, not idempotent.
См. также: Cassandra::BATCH_LOGGED
См. также: Cassandra::BATCH_UNLOGGED
См. также: Cassandra::BATCH_COUNTER
Наследование: implements cassandra\Statement
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( integer $type = Cassandra::BATCH_LOGGED ) Creates a new batch statement.
add ( cassandra\Statement $statement, array $arguments = null ) : BatchStatement Adds a statement to this batch.

Описание методов

__construct() публичный Метод

Creates a new batch statement.
public __construct ( integer $type = Cassandra::BATCH_LOGGED )
$type integer must be one of Cassandra::BATCH_* (default: Cassandra::BATCH_LOGGED).

add() публичный Метод

Adds a statement to this batch.
public add ( cassandra\Statement $statement, array $arguments = null ) : BatchStatement
$statement cassandra\Statement the statement to add
$arguments array positional or named arguments
Результат BatchStatement self