try {
Put put = new Put(row(key));
put.add(FAMILY, QUALIFIER, bytes(value));
return table.checkAndPut(put.getRow(), FAMILY, QUALIFIER, null /*absent*/, put);
} catch (IOException e) {
throw new DrillRuntimeException("Caught error while putting row '" + key + "' from for table:" + Bytes.toString(table.getTableName()), e);
}
}