Skip to content
Browse files

added null start/end predicate example

  • Loading branch information...
1 parent 275b4a5 commit 57c7fa889532a21b4733e1847b4a16316d73cc03 zznate committed
View
3 src/main/java/com/riptano/cassandra/hector/example/MultigetSliceRetrieval.java
@@ -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.
Something went wrong with that request. Please try again.