Search in sources :

Example 1 with NativeLabelScanStore

use of org.neo4j.kernel.impl.index.labelscan.NativeLabelScanStore in project neo4j by neo4j.

the class NativeLabelScanStoreExtension method newInstance.

@Override
public Lifecycle newInstance(KernelContext context, Dependencies dependencies) throws Throwable {
    Log log = dependencies.getLogService().getInternalLog(NativeLabelScanStore.class);
    Monitor monitor = new LoggingMonitor(log, this.monitor);
    NativeLabelScanStore labelScanStore = new NativeLabelScanStore(dependencies.pageCache(), context.storeDir(), new FullLabelStream(dependencies.indexStoreView()), dependencies.getConfig().get(GraphDatabaseSettings.read_only), monitor);
    return new LabelScanStoreProvider(NAME, labelScanStore);
}
Also used : LoggingMonitor(org.neo4j.kernel.api.labelscan.LoggingMonitor) Monitor(org.neo4j.kernel.api.labelscan.LabelScanStore.Monitor) NativeLabelScanStore(org.neo4j.kernel.impl.index.labelscan.NativeLabelScanStore) Log(org.neo4j.logging.Log) LoggingMonitor(org.neo4j.kernel.api.labelscan.LoggingMonitor)

Aggregations

Monitor (org.neo4j.kernel.api.labelscan.LabelScanStore.Monitor)1 LoggingMonitor (org.neo4j.kernel.api.labelscan.LoggingMonitor)1 NativeLabelScanStore (org.neo4j.kernel.impl.index.labelscan.NativeLabelScanStore)1 Log (org.neo4j.logging.Log)1