Skip to content

Commit 3fe61ac

Browse files
committed
Remove legacy methods from RelationshipImportResult
1 parent 1c12c6a commit 3fe61ac

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

core/src/main/java/org/neo4j/gds/core/loading/RelationshipImportResult.java

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020
package org.neo4j.gds.core.loading;
2121

22-
import org.immutables.value.Value;
2322
import org.neo4j.gds.PropertyMappings;
2423
import org.neo4j.gds.RelationshipProjection;
2524
import org.neo4j.gds.RelationshipType;
@@ -46,42 +45,6 @@
4645
@ValueClass
4746
public interface RelationshipImportResult {
4847

49-
@Value.Default
50-
default Map<RelationshipType, Relationships.Topology> relationships() {
51-
return importResults().entrySet().stream().collect(Collectors.toMap(
52-
Map.Entry::getKey,
53-
e -> {
54-
var importResult = e.getValue();
55-
return importResult.forwardTopology();
56-
}
57-
));
58-
}
59-
60-
@Value.Default
61-
default Map<RelationshipType, RelationshipPropertyStore> properties() {
62-
return importResults().entrySet().stream()
63-
.filter(e -> e.getValue().forwardProperties().isPresent())
64-
.collect(Collectors.toMap(
65-
Map.Entry::getKey,
66-
e -> {
67-
var importResult = e.getValue();
68-
return importResult.forwardProperties().get();
69-
}
70-
));
71-
}
72-
73-
@Value.Default
74-
default Map<RelationshipType, Direction> directions() {
75-
return importResults().entrySet().stream()
76-
.collect(Collectors.toMap(
77-
Map.Entry::getKey,
78-
e -> {
79-
var importResult = e.getValue();
80-
return importResult.direction();
81-
}
82-
));
83-
}
84-
8548
Map<RelationshipType, SingleTypeRelationshipImportResult> importResults();
8649

8750
static ImmutableRelationshipImportResult.Builder builder() {

0 commit comments

Comments
 (0)