cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan McCall <n...@vervewireless.com>
Subject Re: paging row keys
Date Thu, 13 May 2010 00:01:25 GMT
Here is a basic example using get_range_slices to retrieve 500 rows via hector:
http://github.com/bosyak/hector/blob/master/src/main/java/me/prettyprint/cassandra/examples/ExampleReadAllKeys.java

To page, use the last key you got back as the start key.

-Nate

On Wed, May 12, 2010 at 3:37 PM, Corey Hulen <cj@earnstone.com> wrote:
>
> Can someone point me to a thrift sample (preferable java) to list all the
> rows in a ColumnFamily for my Cassandra server.  I noticed some examples
> using SlicePredicate and SliceRange to perform a similar query against the
> columns with paging, but I was looking for something similar for rows with
> paging.  I'm also new to Cassandra, so I might have misunderstood the
> existing samples.
> -Corey
>
>
>

Mime
View raw message