开发者

Retrieve every key of a column family in Cassandra

开发者 https://www.devze.com 2023-01-02 04:36 出处:网络
I have found no way to translate a simple select like SELECT * FROM USER into Cassandra. Is it possible to simply retrieve all the keys in a ColumnFamily? The only one I have found is a select with a

I have found no way to translate a simple select like SELECT * FROM USER into Cassandra. Is it possible to simply retrieve all the keys in a ColumnFamily? The only one I have found is a select with a key range (get_range_slices). Is开发者_JS百科 there a way to get the entire key list without the need to define a key range?

Thanks Tobia Loschiavo


You should use get_range_slices, start with "", and after each call use the last key as the start key in the next call

0

精彩评论

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