You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Patricio Echagüe <pa...@gmail.com> on 2011/03/25 04:58:25 UTC
is it possible to mutate Columns and CounterColumn in the same batch mutation?
Hi folks, I'm modeling the partitioned counters into Hector and given the
non-inheritance of Thrift, I don't see how to add a ColumnCounter and a
Column in the same batch mutation.
Is it possible do achieve? or are both in fact different mutations?
Thanks
Re: is it possible to mutate Columns and CounterColumn in the same
batch mutation?
Posted by Patricio Echagüe <pa...@gmail.com>.
thank you both. That makes Hector design much easier as well.
On Fri, Mar 25, 2011 at 2:50 AM, Sylvain Lebresne <sy...@datastax.com>wrote:
> 2011/3/25 Jonathan Ellis <jb...@gmail.com>:
> > You can't have them both in the same Mutation struct, but you can have
> > them in the map<string, list<Mutation>>> that is the "batch."
>
> Actually you can't, because we created a different thrift structure
> (CounteMutation) to hold
> counter mutations. Looking back, we really just did that to have a
> totally separate API for
> counters, but not sure that was a good idea. I've created
> CASSANDRA-2384 to merge
> CounterMutation into Mutation.
>
> --
> Sylvain
>
> > 2011/3/24 Patricio Echagüe <pa...@gmail.com>:
> >> Hi folks, I'm modeling the partitioned counters into Hector and given
> the
> >> non-inheritance of Thrift, I don't see how to add a ColumnCounter and a
> >> Column in the same batch mutation.
> >> Is it possible do achieve? or are both in fact different mutations?
> >> Thanks
> >
> >
> >
> > --
> > Jonathan Ellis
> > Project Chair, Apache Cassandra
> > co-founder of DataStax, the source for professional Cassandra support
> > http://www.datastax.com
> >
>
Re: is it possible to mutate Columns and CounterColumn in the same
batch mutation?
Posted by Sylvain Lebresne <sy...@datastax.com>.
2011/3/25 Jonathan Ellis <jb...@gmail.com>:
> You can't have them both in the same Mutation struct, but you can have
> them in the map<string, list<Mutation>>> that is the "batch."
Actually you can't, because we created a different thrift structure
(CounteMutation) to hold
counter mutations. Looking back, we really just did that to have a
totally separate API for
counters, but not sure that was a good idea. I've created
CASSANDRA-2384 to merge
CounterMutation into Mutation.
--
Sylvain
> 2011/3/24 Patricio Echagüe <pa...@gmail.com>:
>> Hi folks, I'm modeling the partitioned counters into Hector and given the
>> non-inheritance of Thrift, I don't see how to add a ColumnCounter and a
>> Column in the same batch mutation.
>> Is it possible do achieve? or are both in fact different mutations?
>> Thanks
>
>
>
> --
> Jonathan Ellis
> Project Chair, Apache Cassandra
> co-founder of DataStax, the source for professional Cassandra support
> http://www.datastax.com
>
Re: is it possible to mutate Columns and CounterColumn in the same
batch mutation?
Posted by Jonathan Ellis <jb...@gmail.com>.
You can't have them both in the same Mutation struct, but you can have
them in the map<string, list<Mutation>>> that is the "batch."
2011/3/24 Patricio Echagüe <pa...@gmail.com>:
> Hi folks, I'm modeling the partitioned counters into Hector and given the
> non-inheritance of Thrift, I don't see how to add a ColumnCounter and a
> Column in the same batch mutation.
> Is it possible do achieve? or are both in fact different mutations?
> Thanks
--
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of DataStax, the source for professional Cassandra support
http://www.datastax.com