On Wed, Aug 27, 2014 at 3:28 PM, Arindam Bose
wrote:
>
> Also, the code as below, is returning me a list of cells but there is only
> 1 cell matching the name "mymap". What is the missing piece in here?
The cell names are composites. They look like (clustering_column_1,
clustering_column_2, ..
Thanks Tyler.
I am able to get the key and value, but it is only for that cell. I tried
my best but could not reference to the other cells for that Map?
For now I have added 2 rows effectively for that Map
mymap: {"1":"value1,"2":"value2"}
Also, the code as below, is returning me a list of cell
Maps (and other collections) are stored in multiple cells, one cell per
item. To get the map keys, use cell.name().collectionElement() and
deserialize with the type for the keys (UTF8Type.instance). For values,
use cell.value() and use the value type (also UTF8Type.instance, here).
On Wed, Aug
Added few more information:
I need some help in reading CQL3 Collection type values while getting a
callback to the Custom Secondary Index (cassandra 2.1.0).
Column Family:
CREATE TABLE IF NOT EXISTS test1(
id text,
mymap map,
PRIMARY KEY(id)
)
Added value:
Insert into test(id, mymap) values (
Hello,
I need some help in reading CQL3 Collection type values while getting a
callback to the Custom Secondary Index.
Column Family:
CREATE TABLE IF NOT EXISTS test1(
id text,
mymap map,
PRIMARY KEY(id)
)
Added value:
Insert into test(id, mymap) values ('1', {'1':'value1'});
Then in my custo