Re: Use Cassnadra thrift API with collection type

2014-06-24 Thread Huiliang Zhang
Yes, I realized the way to use CQL. I checked the way how map data is represented by using cassandra-cli. For each element in the map, it use the key as part of the column name and value as the column value. I just cannot insert this by using thrift API because I already defined a CompositeType co

Re: Use Cassnadra thrift API with collection type

2014-06-23 Thread Sylvain Lebresne
On Mon, Jun 23, 2014 at 6:19 PM, James Campbell < ja...@breachintelligence.com> wrote: > Huilang, > > > Since there hasn't been another reply yet, I'll throw out an idea that > worked for us as part of a test, though it does not seem exactly like a > "preferred" way since it crosses code-bases.

RE: Use Cassnadra thrift API with collection type

2014-06-23 Thread James Campbell
Huilang, Since there hasn't been another reply yet, I'll throw out an idea that worked for us as part of a test, though it does not seem exactly like a "preferred" way since it crosses code-bases. We built the type using straight java type, then used the Datastax v2 driver's DataType class s