Permalink
Browse files

added null start/end predicate example

  • Loading branch information...
zznate
zznate committed Sep 17, 2010
1 parent 275b4a5 commit 57c7fa889532a21b4733e1847b4a16316d73cc03
@@ -44,7 +44,8 @@ public static void main(String[] args) throws Exception {
HFactory.createMultigetSliceQuery(keyspaceOperator, stringSerializer, stringSerializer, stringSerializer);
multigetSliceQuery.setColumnFamily("Standard1");
multigetSliceQuery.setKeys("fake_key_0", "fake_key_1","fake_key_2", "fake_key_3", "fake_key_4");
- multigetSliceQuery.setRange("", "", false, 3);
+ // set null range for empty byte[] on the underlying predicate
+ multigetSliceQuery.setRange(null, null, false, 3);
System.out.println(multigetSliceQuery);
Result<Rows<String, String, String>> result = multigetSliceQuery.execute();

0 comments on commit 57c7fa8

Please sign in to comment.