use of org.neo4j.kernel.impl.api.scan.NativeLabelScanStoreExtension in project neo4j by neo4j.
the class NeoStoreDataSourceRule method nativeLabelScanStoreProvider.
public static LabelScanStoreProvider nativeLabelScanStoreProvider(File storeDir, FileSystemAbstraction fs, PageCache pageCache, Config config, LogService logService) {
try {
Dependencies dependencies = new Dependencies();
dependencies.satisfyDependencies(pageCache, config, IndexStoreView.EMPTY, logService);
KernelContext kernelContext = new SimpleKernelContext(storeDir, DatabaseInfo.COMMUNITY, dependencies);
return (LabelScanStoreProvider) new NativeLabelScanStoreExtension().newInstance(kernelContext, DependenciesProxy.dependencies(dependencies, NativeLabelScanStoreExtension.Dependencies.class));
} catch (Throwable e) {
throw launderedException(e);
}
}
Aggregations