Class Mutator
Allows you to group multiple mutations across one or more keys and column
families into a single batch operation.
-
phpcassa\Batch\AbstractMutator
-
phpcassa\Batch\Mutator
Methods summary
public
|
|
public
|
#
insert( phpcassa\ColumnFamily $column_family, mixed $key, mixed[] $columns, integer $timestamp = null, integer $ttl = null )
Add an insertion to the buffer.
Add an insertion to the buffer.
Parameters
- $column_family
phpcassa\ColumnFamily
$column_family an initialized ColumnFamily instance
- $key
mixed $key the row key
- $columns
mixed[] $columns an array of columns to insert, whose format should match
$column_family->insert_format
- $timestamp
integer $timestamp an optional timestamp (default is "now", when this function is
called, not when send() is called)
- $ttl
integer $ttl a TTL to apply to all columns inserted here
|
public
|
#
remove( phpcassa\ColumnFamily $column_family, mixed $key, mixed[] $columns = null, mixed $super_column = null, integer $timestamp = null )
Add a deletion to the buffer.
Add a deletion to the buffer.
Parameters
- $column_family
phpcassa\ColumnFamily
$column_family an initialized ColumnFamily instance
- $key
mixed $key the row key
- $columns
mixed[] $columns a list of columns or super columns to delete
- $super_column
mixed $supercolumn if you want to delete only some subcolumns from a single super
column, set this to the super column name
- $timestamp
integer $timestamp an optional timestamp (default is "now", when this function is
called, not when send() is called)
|