Skip to content

Instantly share code, notes, and snippets.

@spullara
Created July 21, 2010 17:34
Show Gist options
  • Select an option

  • Save spullara/484816 to your computer and use it in GitHub Desktop.

Select an option

Save spullara/484816 to your computer and use it in GitHub Desktop.
User saved = new User();
saved.firstName = new Utf8("Sam");
saved.lastName = new Utf8("Pullara");
saved.email = new Utf8("spullara@yahoo.com");
saved.password = ByteBuffer.wrap(new Utf8("").getBytes());
byte[] row = Bytes.toBytes("spullara");
userHAB.put(row, saved);
Row<User> loaded = userHAB.get(row);
Iterable<Row<User>> searched = userHAB.search("firstName:Sam");
userHAB.delete(row);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment