Skip to content

Commit be9f80b

Browse files
committed
implement gds.graph.relationships.stream
1 parent 2b43e6a commit be9f80b

File tree

1 file changed

+5
-33
lines changed
  • applications/graph-store-catalog-results/src/main/java/org/neo4j/gds/applications/graphstorecatalog

1 file changed

+5
-33
lines changed

applications/graph-store-catalog-results/src/main/java/org/neo4j/gds/applications/graphstorecatalog/TopologyResult.java

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,9 @@
1919
*/
2020
package org.neo4j.gds.applications.graphstorecatalog;
2121

22-
import java.util.Objects;
23-
24-
import static org.neo4j.gds.utils.StringFormatting.formatWithLocale;
25-
26-
public class TopologyResult {
27-
public final long sourceNodeId;
28-
public final long targetNodeId;
29-
public final String relationshipType;
30-
31-
public TopologyResult(long sourceNodeId, long targetNodeId, String relationshipType) {
32-
this.sourceNodeId = sourceNodeId;
33-
this.targetNodeId = targetNodeId;
34-
this.relationshipType = relationshipType;
35-
}
36-
37-
@Override
38-
public String toString() {
39-
return formatWithLocale("TopologyResult(%d, %d, type: %s)", sourceNodeId, targetNodeId, relationshipType);
40-
}
41-
42-
@Override
43-
public boolean equals(Object o) {
44-
if (this == o) return true;
45-
if (o == null || getClass() != o.getClass()) return false;
46-
TopologyResult that = (TopologyResult) o;
47-
return sourceNodeId == that.sourceNodeId && targetNodeId == that.targetNodeId && relationshipType.equals(
48-
that.relationshipType);
49-
}
50-
51-
@Override
52-
public int hashCode() {
53-
return Objects.hash(sourceNodeId, targetNodeId, relationshipType);
54-
}
22+
public record TopologyResult(
23+
long sourceNodeId,
24+
long targetNodeId,
25+
String relationshipType
26+
) {
5527
}

0 commit comments

Comments
 (0)