Cassandra counter datatype support through POJO

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Cassandra counter datatype support through POJO

Rohan Thimmappa
Hi All,

i have table containing usage which is counter data type. every time i get usage for a id and would like to user counter data time to increment it.

https://docs.datastax.com/en/cql/3.1/cql/cql_using/use_counter_t.html


Is it support POJO approach of cassandra sync or i have use SQL approach. I am looking for the pojo approach?

create table mytable (
id text,

usage counter,
----
-----
}




--
Thanks
Rohan