Column[] columns = getColumns();
int columnCount = columns.length;
Put put;
Column c;
for (rows.reset(); rows.hasNext();) {
HBaseRow o = (HBaseRow) rows.next();
HBaseRow n = (HBaseRow) rows.next();
o.setForUpdate(true);
n.setRegionName(o.getRegionName());
n.setRowKey(o.getRowKey());
put = ((HBaseSession) session).getTransaction().createHBasePut(defaultColumnFamilyNameAsBytes, n.getRowKey());
for (int i = 0; i < columnCount; i++) {
c = columns[i];
put.add(c.getColumnFamilyNameAsBytes(), c.getNameAsBytes(), HBaseUtils.toBytes(n.getValue(i)));
n.setPut(put);
}
}
super.updateRows(prepared, session, rows);
}