Skip to content

Instantly share code, notes, and snippets.

@zznate
Created March 1, 2011 18:41
Show Gist options
  • Save zznate/849620 to your computer and use it in GitHub Desktop.
Save zznate/849620 to your computer and use it in GitHub Desktop.
Example test code which passes:
public void testMultigetSerializers() {
Mutator m = createMutator(keyspace, is);
m.addInsertion(5, cf,
HFactory.createColumn(10, new byte[0], is, bas));
m.execute();
MultigetSliceQuery<Integer, Integer,byte[]> query = HFactory.createMultigetSliceQuery(keyspace, is, is, bas);
query.setColumnFamily(cf).setKeys(new Integer[]{5}).setColumnNames(new Integer[]{10});
QueryResult<Rows<Integer,Integer,byte[]>> result = query.execute();
System.out.println(result.toString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment