Search in sources :

Example 1 with InMemoryIndexProviderFactory

use of org.neo4j.kernel.impl.api.index.inmemory.InMemoryIndexProviderFactory in project neo4j by neo4j.

the class RebuildCountsTest method restart.

private void restart(FileSystemAbstraction fs) throws IOException {
    if (db != null) {
        db.shutdown();
    }
    fs.mkdirs(storeDir);
    TestGraphDatabaseFactory dbFactory = new TestGraphDatabaseFactory();
    db = dbFactory.setUserLogProvider(userLogProvider).setInternalLogProvider(internalLogProvider).setFileSystem(new UncloseableDelegatingFileSystemAbstraction(fs)).addKernelExtension(new InMemoryIndexProviderFactory(indexProvider)).newImpermanentDatabaseBuilder(storeDir).setConfig(index_background_sampling_enabled, "false").newGraphDatabase();
}
Also used : InMemoryIndexProviderFactory(org.neo4j.kernel.impl.api.index.inmemory.InMemoryIndexProviderFactory) TestGraphDatabaseFactory(org.neo4j.test.TestGraphDatabaseFactory) UncloseableDelegatingFileSystemAbstraction(org.neo4j.graphdb.mockfs.UncloseableDelegatingFileSystemAbstraction)

Aggregations

UncloseableDelegatingFileSystemAbstraction (org.neo4j.graphdb.mockfs.UncloseableDelegatingFileSystemAbstraction)1 InMemoryIndexProviderFactory (org.neo4j.kernel.impl.api.index.inmemory.InMemoryIndexProviderFactory)1 TestGraphDatabaseFactory (org.neo4j.test.TestGraphDatabaseFactory)1