use of org.apache.drill.exec.store.mock.MockStorageEngine in project drill by apache.
the class ClusterFixture method configureStoragePlugins.
private void configureStoragePlugins(Drillbit bit) throws Exception {
// Create the dfs_test name space
@SuppressWarnings("resource") final StoragePluginRegistry pluginRegistry = bit.getContext().getStorage();
TestUtilities.updateDfsTestTmpSchemaLocation(pluginRegistry, dfsTestTempDir.getAbsolutePath());
TestUtilities.makeDfsTmpSchemaImmutable(pluginRegistry);
// Create the mock data plugin
MockStorageEngineConfig config = MockStorageEngineConfig.INSTANCE;
@SuppressWarnings("resource") MockStorageEngine plugin = new MockStorageEngine(MockStorageEngineConfig.INSTANCE, bit.getContext(), MockStorageEngineConfig.NAME);
((StoragePluginRegistryImpl) pluginRegistry).definePlugin(MockStorageEngineConfig.NAME, config, plugin);
}
Aggregations