This repository has been archived by the owner on Aug 4, 2020. It is now read-only.
forked from hoan/phpcassa
Support batch counter adjustments #31
Labels
Comments
is this implemented already in one of the branches? |
No, unfortunately it's not implemented yet. |
up |
This is supported in 1.0.a.1. |
Can an example of how this is possible please be put up somewhere ? I've tried batch_insert on counter columns, it succeeds but no incrementing is done. My mutation is coming through Mutate() correctly: CFMAP!Array
(
[0] => Array
(
[analytic_count_2013_other] => Array
(
[0] => cassandra\Mutation Object
(
[column_or_supercolumn] => cassandra\ColumnOrSuperColumn Object
(
[column] =>
[super_column] =>
[counter_column] => cassandra\CounterColumn Object
(
[name] => 20130000000000_D_Fri_P_6ecee2b8-6c04-11e2-9b1f-72657461696c
[value] => Array
(
[pos_system/bpos] => 1
)
)
[counter_super_column] =>
)
[deletion] =>
)
)
)
) |
I added an example here: https://github.com/thobbs/phpcassa/blob/master/examples/counters.php |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
batch_mutate accepts a set of ColumnOrSuperColumns, which can include CounterColumns and CounterSuperColumns for batch adjustments of counters.
The text was updated successfully, but these errors were encountered: