Search in sources :

Example 1 with AbortRecoverLSMIndexFileManager

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();
}
Also used : AbortRecoverLSMIndexFileManager(org.apache.hyracks.storage.am.lsm.common.impls.AbortRecoverLSMIndexFileManager) FileReference(org.apache.hyracks.api.io.FileReference) IIOManager(org.apache.hyracks.api.io.IIOManager)

Example 2 with AbortRecoverLSMIndexFileManager

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();
}
Also used : AbortRecoverLSMIndexFileManager(org.apache.hyracks.storage.am.lsm.common.impls.AbortRecoverLSMIndexFileManager) FileReference(org.apache.hyracks.api.io.FileReference) IIOManager(org.apache.hyracks.api.io.IIOManager)

Aggregations

FileReference (org.apache.hyracks.api.io.FileReference)2 IIOManager (org.apache.hyracks.api.io.IIOManager)2 AbortRecoverLSMIndexFileManager (org.apache.hyracks.storage.am.lsm.common.impls.AbortRecoverLSMIndexFileManager)2