assertMetricsUpdated(OpType.BATCH);
}
@Test
public void testMultiget() throws Exception {
HTableInterface hTable = getHTable();
byte[] row1 = randomRowKey();
byte[] row2 = randomRowKey();
Put put1 = new Put(row1);
put1.add(cf, row1, row1);
Put put2 = new Put(row2);
put2.add(cf, row2, row2);
hTable.batch(ImmutableList.<Row>of(put1, put2));
List<Get> gets = ImmutableList.<Get>of(new Get(row1), new Get(row2));
Result[] results = hTable.get(gets);
Assert.assertArrayEquals(row1, results[0].getRow());
Assert.assertArrayEquals(row2, results[1].getRow());
assertMetricsUpdated(OpType.BATCH, OpType.MULTIGET);