Search in sources :

Example 1 with ResourceIdFactoryProvider

use of org.apache.hyracks.storage.common.file.ResourceIdFactoryProvider in project asterixdb by apache.

the class TestStorageManagerComponentHolder method getResourceIdFactory.

public static synchronized ResourceIdFactory getResourceIdFactory() {
    if (resourceIdFactory == null) {
        try {
            ResourceIdFactoryProvider resourceIdFactoryFactory = new ResourceIdFactoryProvider(getLocalResourceRepository());
            resourceIdFactory = resourceIdFactoryFactory.createResourceIdFactory();
        } catch (HyracksException e) {
            //In order not to change the IStorageManagerInterface due to the test code, throw runtime exception.
            throw new IllegalArgumentException();
        }
    }
    return resourceIdFactory;
}
Also used : ResourceIdFactoryProvider(org.apache.hyracks.storage.common.file.ResourceIdFactoryProvider) HyracksException(org.apache.hyracks.api.exceptions.HyracksException)

Aggregations

HyracksException (org.apache.hyracks.api.exceptions.HyracksException)1 ResourceIdFactoryProvider (org.apache.hyracks.storage.common.file.ResourceIdFactoryProvider)1