use of org.apache.hyracks.storage.am.lsm.common.impls.AbortRecoverLSMIndexFileManager in project asterixdb by apache.
the class ExternalDatasetIndexesRecoverOperatorDescriptor method performOpOnIndex.
@Override
protected void performOpOnIndex(IIndexDataflowHelper indexDataflowHelper, IHyracksTaskContext ctx) throws HyracksDataException {
String path = indexDataflowHelper.getResource().getPath();
IIOManager ioManager = ctx.getIoManager();
FileReference file = ioManager.resolve(path);
AbortRecoverLSMIndexFileManager fileManager = new AbortRecoverLSMIndexFileManager(ctx.getIoManager(), file);
fileManager.recoverTransaction();
}
use of org.apache.hyracks.storage.am.lsm.common.impls.AbortRecoverLSMIndexFileManager in project asterixdb by apache.
the class ExternalDatasetIndexesAbortOperatorDescriptor method performOpOnIndex.
@Override
protected void performOpOnIndex(IIndexDataflowHelper indexDataflowHelper, IHyracksTaskContext ctx) throws HyracksDataException {
String path = indexDataflowHelper.getResource().getPath();
IIOManager ioManager = ctx.getIoManager();
FileReference file = ioManager.resolve(path);
AbortRecoverLSMIndexFileManager fileManager = new AbortRecoverLSMIndexFileManager(ctx.getIoManager(), file);
fileManager.deleteTransactionFiles();
}
Aggregations