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