if (i % 2 == 0) {
put = new PutRequest(table1, key, family, "q", "v");
} else {
put = new PutRequest(table2, key, family, "q", "v");
}
final DeleteRequest delete = new DeleteRequest(put.table(), put.key());
client.delete(delete);
client.put(put);
}
client.flush().joinUninterruptibly();
}