sadwitdastreetz commented on code in PR #683:
URL: 
https://github.com/apache/incubator-hugegraph-toolchain/pull/683#discussion_r2446508153


##########
hugegraph-loader/src/main/java/org/apache/hugegraph/loader/HugeGraphLoader.java:
##########
@@ -97,10 +155,50 @@ public LoadContext context() {
         return this.context;
     }
 
+    private void checkGraphExists() {
+        HugeClient client = this.context.indirectClient();
+        String targetGraph = this.options.graph;
+        if (this.options.createGraph
+            && !client.graphs().listGraph().contains(targetGraph)) {
+            Map<String, String> conf = new HashMap<>();

Review Comment:
   Thanks for pointing this out — agreed.
   I’ve added backend, serializer, and schedulerType fields to LoadOptions so 
that users can configure different HugeGraph backends and deployment modes 
without modifying the source code.
   Default values remain hstore, binary, and distributed for backward 
compatibility.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to