use of org.neo4j.internal.batchimport.NodeCountsStage in project neo4j by neo4j.
the class CountsComputer method populateCountStore.
private void populateCountStore(CountsAccessor.Updater countsUpdater) {
try (NodeLabelsCache cache = new NodeLabelsCache(numberArrayFactory, nodes.getHighId(), highLabelId, memoryTracker)) {
Configuration configuration = Configuration.defaultConfiguration(databaseLayout.databaseDirectory());
// Count nodes
superviseDynamicExecution(new NodeCountsStage(configuration, cache, nodes, highLabelId, countsUpdater, progressMonitor, pageCacheTracer));
// Count relationships
superviseDynamicExecution(new RelationshipCountsStage(configuration, cache, relationships, highLabelId, highRelationshipTypeId, countsUpdater, numberArrayFactory, progressMonitor, pageCacheTracer, memoryTracker));
}
}
Aggregations