incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <ty...@riptano.com>
Subject Re: get_slice wont let me page backwards.
Date Sat, 06 Nov 2010 18:46:08 GMT
You can do approximately the same thing as going forward, just use
column_reversed=True in the SlicePredicate.

- Tyler

On Fri, Nov 5, 2010 at 10:25 PM, J T <jt4websites@googlemail.com> wrote:

> Hi,
>
> I've been trying to write a wrapper around get_slice that supports paging
> semantics.
>
> I can get it to page forwards - starting with Start="" and then
> successively passing in a new Start / Count.
>
> But when i try going backwards from the end, passing Start = "" and Finish
> = "X", it doesn't give me the N columns up to column X as I would expect.
> It actually gives me a range of columns that fall much earlier in the paged
> set.
>
> Any suggestions on where I might be going wrong ?
>
> Kt.
>

Mime
View raw message