I m using Cassandra DB.I want to know how t开发者_StackOverflowo get count of column of particular columnFamily in cassandra
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.
Use the Thrift api method called "get_count". More APIs documented on the Apache Cassandra API wiki page
精彩评论