Andrew
Andrew

Reputation: 8480

How do I fetch n-th row from Cassandra?

I have column family with timestamp as row name and I want to fetch first 10 rows, second 10's, etc.

family = { //CF
    TimeUUID: value, 
    ...

I know that I can set column-limit for first query and get first n-th rows, but how can I get next n-th rows?

Upvotes: 2

Views: 1916

Answers (1)

Schildmeijer
Schildmeijer

Reputation: 20946

get_range_slices (use the last key from the previous query as the first key in the next query)

Upvotes: 1

Related Questions