File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed
core/src/main/java/org/neo4j/gds/core/loading Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change 1919 */
2020package org .neo4j .gds .core .loading ;
2121
22- import org .immutables .value .Value ;
2322import org .neo4j .gds .PropertyMappings ;
2423import org .neo4j .gds .RelationshipProjection ;
2524import org .neo4j .gds .RelationshipType ;
4645@ ValueClass
4746public 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 () {
You can’t perform that action at this time.
0 commit comments