zznate / hector-examples

Various examples of using the Hector API to access Apache Cassandra
MIT License
80 stars 26 forks source link

How to paginate back from a 'n' the row key (using RandomPartitioner) ? #3

Open asribalaji opened 12 years ago

asribalaji commented 12 years ago

Hi,

How to paginate back from a 'n' the row key using RangeSlicesQuery ?

The data is based on RP and the reverse option on the setRange function seems to be applicable only for the columns not on the rows. (http://tinyurl.com/73tncn3)

Could you please provide your comments on this ?

Thanks, Sribalaji

zznate commented 12 years ago

It is a function of the hashing algorithm when you page via rangeslices with random partitioner. In other words, you are using the order of the hashed values - not the values themselves.

On Tue, Jan 10, 2012 at 2:03 AM, asribalaji reply@reply.github.com wrote:

Hi,

How to paginate back from a 'n' the row key  using RangeSlicesQuery ?

The data is based on RP and the reverse option on the setRange function seems to be applicable only for the columns not on the rows. (http://tinyurl.com/73tncn3)

Could you please provide your comments on this ?

Thanks, Sribalaji


Reply to this email directly or view it on GitHub: https://github.com/zznate/hector-examples/issues/3