saggy
saggy

Reputation: 169

How to get column count in cassandra

I m using Cassandra DB.I want to know how to get count of column of particular columnFamily in cassandra

Upvotes: 3

Views: 4059

Answers (2)

Tyler Hobbs
Tyler Hobbs

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

Schildmeijer
Schildmeijer

Reputation: 20946

Use the Thrift api method called "get_count". More APIs documented on the Apache Cassandra API wiki page

Upvotes: 2

Related Questions