Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Support batch counter adjustments #31

Closed
thobbs opened this issue Jun 9, 2011 · 6 comments
Closed

Support batch counter adjustments #31

thobbs opened this issue Jun 9, 2011 · 6 comments

Comments

@thobbs
Copy link
Owner

thobbs commented Jun 9, 2011

batch_mutate accepts a set of ColumnOrSuperColumns, which can include CounterColumns and CounterSuperColumns for batch adjustments of counters.

@sdolgy
Copy link

sdolgy commented Oct 22, 2011

is this implemented already in one of the branches?

@thobbs
Copy link
Owner Author

thobbs commented Nov 14, 2011

No, unfortunately it's not implemented yet.

@defkrie
Copy link

defkrie commented Jan 19, 2012

up

@thobbs
Copy link
Owner Author

thobbs commented May 10, 2012

This is supported in 1.0.a.1.

@thobbs thobbs closed this as completed May 10, 2012
@drewbroadley
Copy link

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] => 
                        )

                )

        )

)

@thobbs
Copy link
Owner Author

thobbs commented Feb 1, 2013

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants