Hi

for that version of the driver there is no build-in functionality for the
backward paging, although it's doable:
https://stackoverflow.com/questions/50168236/cassandra-pagination-inside-partition/50172052#50172052

for driver 4.9.0 there is a wrapper class that emultates random paging,
with tradeoff for performance:
https://docs.datastax.com/en/developer/java-driver/4.9/manual/core/paging/#offset-queries

On Fri, Oct 23, 2020 at 10:00 AM Manu Chadha <manu.cha...@hotmail.com>
wrote:

> In Java driver 3.4.0, how does one revert the order of paging? I want to
> implement a “Back” button but I can’t figure out from the API docs if/how I
> can make Cassandra (via the Java driver) search backwards.
>
>
>
> https://docs.datastax.com/en/drivers/java/3.4/
>
>
>
> The code I have written currently is
>
>
>
> session.execute(whereClause
>   .setFetchSize(fetchSize)
>
>   .setPagingState(pagingState))
>
>
>
> Thanks
>
> Manu
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>


-- 
With best wishes,                    Alex Ott
http://alexott.net/
Twitter: alexott_en (English), alexott (Russian)

Reply via email to