use of org.neo4j.unsafe.impl.batchimport.RelationshipCountsStage in project neo4j by neo4j.
the class CountsComputer method initialize.
@Override
public void initialize(CountsAccessor.Updater countsUpdater) {
NodeLabelsCache cache = new NodeLabelsCache(NumberArrayFactory.AUTO, highLabelId);
try {
// Count nodes
superviseDynamicExecution(new NodeCountsStage(Configuration.DEFAULT, cache, nodes, highLabelId, countsUpdater));
// Count relationships
superviseDynamicExecution(new RelationshipCountsStage(Configuration.DEFAULT, cache, relationships, highLabelId, highRelationshipTypeId, countsUpdater, AUTO));
} finally {
cache.close();
}
}
Aggregations