Created
July 21, 2010 17:34
-
-
Save spullara/484816 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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