incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Mallassi <omalla...@octo.com>
Subject Re: question about class SlicePredicate
Date Tue, 01 Jun 2010 11:38:03 GMT
Does it work whatever the chosen partionner?
Or only for OrderPreservingPartitionner ?

On Tuesday, June 1, 2010, Eric Yu <sucode@gmail.com> wrote:
> It needs a SliceRange. For example:
> SliceRange range = new SliceRange();
> range.setStart("".getBytes());
> range.setFinish("".getBytes());
> range.setReversed(true);
> range.setCount(20);
>
> SlicePredicate sp = new SlicePredicate();
> sp.setSlice_range(range);
>
> client.get_slice(KEYSPACE, KEY, ColumnParent, sp, ConsistencyLevel.ONE);
> 2010/6/1 Shuai Yuan <yuanshuai@supertool.net.cn>
> Hi all,
>
> I don't quite understand the usage of 'class SlicePredicate' when trying
> to retrieve a ranged slice.
>
> How should it be initialized?
>
> Thanks!
> --
> Kevin Yuan
> www.yuan-shuai.info
>
>
>
>
>

-- 
............................................................
Olivier Mallassi
OCTO Technology
............................................................
50, Avenue des Champs-Elysées
75008 Paris

Mobile: (33) 6 28 70 26 61
Tél: (33) 1 58 56 10 00
Fax: (33) 1 58 56 10 01

http://www.octo.com
Octo Talks! http://blog.octo.com

Mime
View raw message