开发者

How to get column count in cassandra

开发者 https://www.devze.com 2023-01-26 05:17 出处:网络
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 leve

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

0

精彩评论

暂无评论...
验证码 换一张
取 消