tablePool, tableName, "SimpleHBaseRecord", manager);
testBasicOperations(dao);
}
private void testBasicOperations(Dao<SimpleHBaseRecord> dao) {
SimpleHBaseRecord r1 = SimpleHBaseRecord.newBuilder().setField1("Field 1")
.setKeyPart1("KeyPart 1").build();
dao.put(r1);
PartitionKey key = new PartitionKey("KeyPart 1");
SimpleHBaseRecord r2 = dao.get(key);
assertEquals(r1.getField1().toString(), r2.getField1().toString());
assertEquals(r1.getKeyPart1().toString(), r2.getKeyPart1().toString());
}