use of org.neo4j.kernel.impl.store.CommonAbstractStore in project neo4j by neo4j.
the class TestCrashWithRebuildSlow method getHighIds.
private static Map<IdType, Long> getHighIds(GraphDatabaseAPI db) {
final Map<IdType, Long> highIds = new HashMap<>();
NeoStores neoStores = db.getDependencyResolver().resolveDependency(RecordStorageEngine.class).testAccessNeoStores();
Visitor<CommonAbstractStore, RuntimeException> visitor = new Visitor<CommonAbstractStore, RuntimeException>() {
@Override
public boolean visit(CommonAbstractStore store) throws RuntimeException {
highIds.put(store.getIdType(), store.getHighId());
return true;
}
};
neoStores.visitStore(visitor);
return highIds;
}
Aggregations