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;
}
Aggregations