From 54d627d5ea1e3c987f8c7c174b51e8bdc9434594 Mon Sep 17 00:00:00 2001 From: ioannispan Date: Wed, 17 Jul 2024 14:05:25 +0200 Subject: [PATCH] Minor cleanup --- .../similarity/Neo4jDatabaseRelationshipWriter.java | 6 ++---- .../gds/algorithms/similarity/WriteRelationshipService.java | 3 --- .../applications/algorithms/similarity/SimilarityWrite.java | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/algo/src/main/java/org/neo4j/gds/algorithms/similarity/Neo4jDatabaseRelationshipWriter.java b/algo/src/main/java/org/neo4j/gds/algorithms/similarity/Neo4jDatabaseRelationshipWriter.java index c9a9ba51ff..e6f3a87d7d 100644 --- a/algo/src/main/java/org/neo4j/gds/algorithms/similarity/Neo4jDatabaseRelationshipWriter.java +++ b/algo/src/main/java/org/neo4j/gds/algorithms/similarity/Neo4jDatabaseRelationshipWriter.java @@ -20,7 +20,6 @@ package org.neo4j.gds.algorithms.similarity; import org.neo4j.gds.api.Graph; -import org.neo4j.gds.api.GraphStore; import org.neo4j.gds.api.IdMap; import org.neo4j.gds.api.RelationshipWithPropertyConsumer; import org.neo4j.gds.api.ResultStore; @@ -36,14 +35,13 @@ import java.util.Optional; import java.util.concurrent.atomic.AtomicLong; -public final class Neo4jDatabaseRelationshipWriter { - public static WriteRelationshipResult writeRelationship( +final class Neo4jDatabaseRelationshipWriter { + static WriteRelationshipResult writeRelationship( String writeRelationshipType, String writeProperty, TaskRegistryFactory taskRegistryFactory, RelationshipExporterBuilder relationshipExporterBuilder, Graph graph, - GraphStore graphStore, IdMap rootIdMap, Log log, String taskName, diff --git a/algo/src/main/java/org/neo4j/gds/algorithms/similarity/WriteRelationshipService.java b/algo/src/main/java/org/neo4j/gds/algorithms/similarity/WriteRelationshipService.java index b7cfb2af03..e584f9476d 100644 --- a/algo/src/main/java/org/neo4j/gds/algorithms/similarity/WriteRelationshipService.java +++ b/algo/src/main/java/org/neo4j/gds/algorithms/similarity/WriteRelationshipService.java @@ -20,7 +20,6 @@ package org.neo4j.gds.algorithms.similarity; import org.neo4j.gds.api.Graph; -import org.neo4j.gds.api.GraphStore; import org.neo4j.gds.api.IdMap; import org.neo4j.gds.api.RelationshipWithPropertyConsumer; import org.neo4j.gds.api.ResultStore; @@ -46,7 +45,6 @@ public WriteRelationshipResult write( String writeRelationshipType, String writeProperty, Graph graph, - GraphStore graphStore, IdMap rootIdMap, String taskName, Optional resultStore, @@ -59,7 +57,6 @@ public WriteRelationshipResult write( requestScopedDependencies.getTaskRegistryFactory(), writeContext.getRelationshipExporterBuilder(), graph, - graphStore, rootIdMap, log, taskName, diff --git a/applications/algorithms/similarity/src/main/java/org/neo4j/gds/applications/algorithms/similarity/SimilarityWrite.java b/applications/algorithms/similarity/src/main/java/org/neo4j/gds/applications/algorithms/similarity/SimilarityWrite.java index 0cee7a113f..0ece30d569 100644 --- a/applications/algorithms/similarity/src/main/java/org/neo4j/gds/applications/algorithms/similarity/SimilarityWrite.java +++ b/applications/algorithms/similarity/src/main/java/org/neo4j/gds/applications/algorithms/similarity/SimilarityWrite.java @@ -103,7 +103,6 @@ Pair> execute( writeRelationshipConfiguration.writeRelationshipType(), writePropertyConfiguration.writeProperty(), similarityGraph, - graphStore, rootIdMap, label.value, resultStore,