Re: Use Cassnadra thrift API with collection type

2014-06-24 Thread Huiliang Zhang
t encoding depends on the collection. The fact is, updating CQL > collection from thrift is technically possible but it is not recommended in > any way. I strongly advise you to stick to CQL if you want to use CQL > collections. > > -- > Sylvain > >> >> >>

Re: Use Cassnadra thrift API with collection type

2014-06-23 Thread Sylvain Lebresne
ing depends on the collection. The fact is, updating CQL collection from thrift is technically possible but it is not recommended in any way. I strongly advise you to stick to CQL if you want to use CQL collections. -- Sylvain > > > ---------- > *From:* Huil

RE: Use Cassnadra thrift API with collection type

2014-06-23 Thread James Campbell
type ?column.value = DataType.map(DataType.ascii, DataType.decimal).serialize(yourMapGoesHere); column.timestamp = new Date().getTime(); ... From: Huiliang Zhang Sent: Friday, June 20, 2014 10:10 PM To: user@cassandra.apache.org Subject

Use Cassnadra thrift API with collection type

2014-06-20 Thread Huiliang Zhang
Hi, I have a problem when insert data of the map type into a cassandra table. I tried all kinds of MapSerializer to serialize the Map data and did not succeed. My code is like this: Column column = new Column(); column.name=columnSerializer.toByteBuffer(colname); // the co