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 <>
Hi all,

I don't quite understand the usage of 'class SlicePredicate' when trying
to retrieve a ranged slice.

How should it be initialized?

Kevin Yuan