try {
return table.checkAndDelete(delete.getRow(),
Constants.SYS_COL_FAMILY, Constants.VERSION_CHECK_COL_QUALIFIER,
versionBytes, delete);
} catch (IOException e) {
throw new DatasetIOException(
"Error deleteing row from table with checkAndDelete", e);
}
} else {
try {
table.delete(delete);
return true;
} catch (IOException e) {
throw new DatasetIOException("Error deleteing row from table", e);
}
}
} finally {
if (table != null) {
try {
table.close();
} catch (IOException e) {
throw new DatasetIOException("Error putting table back into pool", e);
}
}
}
}