/** * Returns the {@link UUID} of this Row. * * @return UUID of this Row. */ public UUID getUUID() { return Util.bytesToUUID(row.getUuid().bytes()); }
public byte[] getRow(byte[] uuid) { checkTableOpen(); checkNotNull(uuid, "Get row cannot have a null UUID."); return table.getRow(Util.bytesToUUID(uuid)).serialize(); }
@Test public void testUUIDBytes() throws Exception { for (UUID uuid : Iterables.toIterable(new UUIDGenerator())) { Assert.assertEquals(uuid, Util.bytesToUUID(Util.UUIDToBytes(uuid))); } } }