use of org.neo4j.kernel.api.impl.labelscan.LuceneLabelScanStore in project neo4j by neo4j.
the class LuceneLabelScanStoreBuilder method build.
public LabelScanStore build() {
if (null == labelScanStore) {
// TODO: Replace with kernel extension based lookup
LabelScanStore.Monitor monitor = new LoggingMonitor(logProvider.getLog(LuceneLabelScanStore.class));
LuceneLabelScanIndexBuilder indexBuilder = LuceneLabelScanIndexBuilder.create().withFileSystem(fileSystem).withIndexRootFolder(getStoreDirectory(storeDir)).withConfig(config).withOperationalMode(operationalMode);
labelScanStore = new LuceneLabelScanStore(indexBuilder, new FullLabelStream(storeViewSupplier), monitor);
try {
labelScanStore.init();
labelScanStore.start();
} catch (IOException e) {
// Throw better exception
throw new RuntimeException(e);
}
}
return labelScanStore;
}
Aggregations