File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
test/java/org/neo4j/gds/core/loading
cypher/cypher-core/src/main/java/org/neo4j/gds/core/cypher Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ default void validateGraphIsSuitableForWrite(
5252 @ SuppressWarnings ("unused" ) Collection <NodeLabel > selectedLabels ,
5353 @ SuppressWarnings ("unused" ) Collection <RelationshipType > selectedRelationshipTypes
5454 ) {
55- if (!graphStore .capabilities ().isBackedByDatabase ()) {
55+ if (!graphStore .capabilities ().canWriteToDatabase ()) {
5656 throw new IllegalArgumentException ("The provided graph does not support `write` execution mode." );
5757 }
5858 }
Original file line number Diff line number Diff line change 2121
2222public interface Capabilities {
2323
24- boolean isBackedByDatabase ();
24+ boolean canWriteToDatabase ();
2525}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void gdlGraphIsBackedByDatabase() {
3636 .build ()
3737 .build ();
3838 var capabilities = graphStore .capabilities ();
39- assertThat (capabilities .isBackedByDatabase ()).isTrue ();
39+ assertThat (capabilities .canWriteToDatabase ()).isTrue ();
4040 }
4141
4242 @ Test
@@ -48,6 +48,6 @@ void neo4jGraphIsBackedByDatabase() {
4848 .graphStore ();
4949
5050 var capabilities = graphStore .capabilities ();
51- assertThat (capabilities .isBackedByDatabase ()).isTrue ();
51+ assertThat (capabilities .canWriteToDatabase ()).isTrue ();
5252 }
5353}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public void registerStateVisitor(StateVisitor stateVisitor) {
6060
6161 @ Override
6262 public Capabilities capabilities () {
63- return ImmutableStaticCapabilities .builder ().from (super .capabilities ()).isBackedByDatabase (false ).build ();
63+ return ImmutableStaticCapabilities .builder ().from (super .capabilities ()).canWriteToDatabase (false ).build ();
6464 }
6565
6666 @ Override
You can’t perform that action at this time.
0 commit comments