use of io.cdap.cdap.api.annotation.WriteOnly in project cdap by caskdata.
the class IndexedObjectStore method write.
@WriteOnly
public void write(byte[] key, T object) {
Row row = index.get(getPrefixedPrimaryKey(key));
if (!row.isEmpty()) {
Set<byte[]> columnsToDelete = row.getColumns().keySet();
deleteSecondaryKeys(key, columnsToDelete.toArray(new byte[columnsToDelete.size()][]));
}
writeToObjectStore(key, object);
}
Aggregations