Search in sources :

Example 1 with MockStorageEngine

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);
}
Also used : StoragePluginRegistry(org.apache.drill.exec.store.StoragePluginRegistry) MockStorageEngineConfig(org.apache.drill.exec.store.mock.MockStorageEngineConfig) MockStorageEngine(org.apache.drill.exec.store.mock.MockStorageEngine) StoragePluginRegistryImpl(org.apache.drill.exec.store.StoragePluginRegistryImpl)

Aggregations

StoragePluginRegistry (org.apache.drill.exec.store.StoragePluginRegistry)1 StoragePluginRegistryImpl (org.apache.drill.exec.store.StoragePluginRegistryImpl)1 MockStorageEngine (org.apache.drill.exec.store.mock.MockStorageEngine)1 MockStorageEngineConfig (org.apache.drill.exec.store.mock.MockStorageEngineConfig)1