Menu

Version 0.4.3

This version introduce support for counters. For example, you can now write something like:

cassandra["context"]["table"]["row"]["column"]++;

to increment a counter. You can also use --, += and -= to increment and decrement as needed. The get and set work seamlessly so you can use the normal libQtCassandra syntax for those:

cassandra["context"]["table"]["row"]["column"] = 81;
cassandra["context"]["table"]["row"]["column"] += 9;
QCassandraValue value(cassandra["context"]["table"]["row"]["column"]);
// value is 90

Note that the set saves the value in the cache and at that point you are likely to get a 32 bit value instead of a 64 bit value as expected in counters. I will look into fixing that bug. Also, a set of a value other than an integer should generate an error which it doesn't.

Posted by Alexis Wilke 2012-08-30

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.