for(int i = firstRow; i < firstRow + nrows; i++) {
BatchUpdate batchUpdate = new BatchUpdate(Bytes.toBytes("row_"
+ String.format("%1$05d", i)));
batchUpdate.put(COLUMN_NAME, value.get());
region.batchUpdate(batchUpdate, null);
if(i % 10000 == 0) {
System.out.println("Flushing write #" + i);
r.flushcache();
}
}