use of com.google.bigtable.admin.v2.DropRowRangeRequest in project java-bigtable-hbase by googleapis.
the class TestBigtableAdmin method testDeleteRowRangeByPrefixNonUtf8.
@Test
public void testDeleteRowRangeByPrefixNonUtf8() throws IOException, InterruptedException {
TableName tableName = TableName.valueOf(TABLE_ID);
ByteString expectedKey = ByteString.copyFrom(new byte[] { 0, 0, 0, (byte) 128 });
DropRowRangeRequest expectedRequest = DropRowRangeRequest.newBuilder().setName(TABLE_NAME).setRowKeyPrefix(expectedKey).build();
responseQueue.put(Empty.getDefaultInstance());
admin.deleteRowRangeByPrefix(tableName, expectedKey.toByteArray());
assertEquals(expectedRequest, requestQueue.take());
}
Aggregations