开发者

Fetching all keys using the Cassandra API -- analogy to "SELECT id FROM table;"

开发者 https://www.devze.com 2022-12-23 17:00 出处:网络
The Cass开发者_运维技巧andra command-line utility sstablekeys can be used to extract all defined row keys from a physical SSTABLE file:

The Cass开发者_运维技巧andra command-line utility sstablekeys can be used to extract all defined row keys from a physical SSTABLE file:

sstablekeys .../cassandra/data/Keyspace1/Standard1-N-Data.db

Does the Cassandra API support retrieval of all defined keys? If so, how?

I'm looking for the Cassandra analogy to SELECT id FROM table;.


Take a look at get_range_slices

list<KeySlice> get_range_slices(keyspace, column_parent, predicate, range, consistency_level) 

which replaces get_range_slice in 0.6.

Nb. For version < 0.6: this method is only allowed when using an order-preserving partitioner.

0

精彩评论

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