Search in sources :

Example 1 with LSMInvertedIndexDiskComponent

use of org.apache.hyracks.storage.am.lsm.invertedindex.impls.LSMInvertedIndexDiskComponent in project asterixdb by apache.

the class LSMInvertedIndexIOOperationCallback method getComponentFileLSNOffset.

@Override
public long getComponentFileLSNOffset(ILSMDiskComponent diskComponent, String diskComponentFilePath) throws HyracksDataException {
    if (diskComponentFilePath.endsWith(LSMInvertedIndexFileManager.DELETED_KEYS_BTREE_SUFFIX)) {
        LSMInvertedIndexDiskComponent invIndexComponent = (LSMInvertedIndexDiskComponent) diskComponent;
        IMetadataPageManager metadataPageManager = (IMetadataPageManager) invIndexComponent.getDeletedKeysBTree().getPageManager();
        return metadataPageManager.getFileOffset(metadataPageManager.createMetadataFrame(), LSN_KEY);
    }
    return INVALID;
}
Also used : LSMInvertedIndexDiskComponent(org.apache.hyracks.storage.am.lsm.invertedindex.impls.LSMInvertedIndexDiskComponent) IMetadataPageManager(org.apache.hyracks.storage.am.common.api.IMetadataPageManager)

Aggregations

IMetadataPageManager (org.apache.hyracks.storage.am.common.api.IMetadataPageManager)1 LSMInvertedIndexDiskComponent (org.apache.hyracks.storage.am.lsm.invertedindex.impls.LSMInvertedIndexDiskComponent)1