From 9fabe07718f224e8304abeddc17c5889a114fff8 Mon Sep 17 00:00:00 2001 From: Mats Rydberg Date: Thu, 8 Feb 2024 15:19:10 +0100 Subject: [PATCH] Refactor ArrowDatabaseGraphImporter - make progress logger a field - remove other fields replaced by progress logger - add factory to simplify constructor - replace databaseId with databaseInfo to simplify doImport() --- core/src/main/java/org/neo4j/gds/api/DatabaseInfo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/org/neo4j/gds/api/DatabaseInfo.java b/core/src/main/java/org/neo4j/gds/api/DatabaseInfo.java index 98aa1362d3..e184449baa 100644 --- a/core/src/main/java/org/neo4j/gds/api/DatabaseInfo.java +++ b/core/src/main/java/org/neo4j/gds/api/DatabaseInfo.java @@ -31,6 +31,10 @@ static DatabaseInfo of(DatabaseId databaseId, DatabaseLocation databaseLocation) return ImmutableDatabaseInfo.of(databaseId, databaseLocation, Optional.empty()); } + static DatabaseInfo of(DatabaseId databaseId, DatabaseLocation databaseLocation, DatabaseId remoteDatabaseId) { + return ImmutableDatabaseInfo.of(databaseId, databaseLocation, remoteDatabaseId); + } + DatabaseId databaseId(); DatabaseLocation databaseLocation();