cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Boxenhorn <da...@lookin2.com>
Subject Re: [***SPAM*** ] Re: question about class SlicePredicate
Date Fri, 04 Jun 2010 15:19:13 GMT
It works for Random Partitioner only if you want to get all keys.

2010/6/4 Shuai Yuan <yuanshuai@supertool.net.cn>

> It's documented that get_range_slice() supports all partitioner in 0.6
>
> Kevin
>
> -------- 原始信件 --------
> 发件人: Olivier Mallassi <omallassi@octo.com>
> 收件人: user@cassandra.apache.org <user@cassandra.apache.org>
> 主题: [***SPAM*** ] Re: question about class SlicePredicate
> 日期: Tue, 1 Jun 2010 13:38:03 +0200
>
> 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
> >
> >
> >
> >
> >
>
>
>
>
>

Mime
View raw message