Reputation: 169
I m using Cassandra DB.I want to know how to get count of column of particular columnFamily in cassandra
Upvotes: 3
Views: 4059
Reputation: 6932
Instead of using the Thrift API method, you should use one of the high level clients available here: http://wiki.apache.org/cassandra/ClientOptions
Most of them present a get_count() or multiget_count() method that you can use, and they have much nicer APIs.
Upvotes: 7
Reputation: 20946
Use the Thrift api method called "get_count". More APIs documented on the Apache Cassandra API wiki page
Upvotes: 2