use of org.apache.hyracks.storage.am.lsm.common.api.ILSMTreeTupleWriter in project asterixdb by apache.
the class AbstractLSMDiskComponentBulkLoader method delete.
@Override
public void delete(ITupleReference tuple) throws HyracksDataException {
ILSMTreeTupleWriter tupleWriter = (ILSMTreeTupleWriter) ((AbstractTreeIndexBulkLoader) indexBulkLoader).getLeafFrame().getTupleWriter();
tupleWriter.setAntimatter(true);
try {
ITupleReference t;
if (indexTuple != null) {
indexTuple.reset(tuple);
t = indexTuple;
} else {
t = tuple;
}
indexBulkLoader.add(t);
updateFilter(tuple);
} catch (Exception e) {
cleanupArtifacts();
throw e;
} finally {
tupleWriter.setAntimatter(false);
}
if (isEmptyComponent) {
isEmptyComponent = false;
}
}
Aggregations