Radeity commented on code in PR #269:
URL:
https://github.com/apache/incubator-hugegraph-computer/pull/269#discussion_r1342433725
##########
computer-api/src/main/java/org/apache/hugegraph/computer/core/config/ComputerOptions.java:
##########
@@ -198,6 +198,62 @@ public static synchronized ComputerOptions instance() {
""
);
+ public static final ConfigOption<Boolean> SNAPSHOT_WRITE =
+ new ConfigOption<>(
+ "snapshot.write",
+ "Whether write snapshot of input vertex and edge
partitions",
+ allowValues(true, false),
+ false
+ );
+
+ public static final ConfigOption<Boolean> SNAPSHOT_LOAD =
+ new ConfigOption<>(
+ "snapshot.load",
+ "Whether use snapshot of input vertex and edge partitions",
+ allowValues(true, false),
+ false
+ );
+
+ public static final ConfigOption<String> SNAPSHOT_VIEW_KEY =
+ new ConfigOption<>(
+ "snapshot.view_key",
+ "View key of target snapshot",
Review Comment:
Maybe we can use SNAPSHOT_NAME instead, just a user-defined unique
identifier of the snapshot.
##########
computer-api/src/main/java/org/apache/hugegraph/computer/core/config/ComputerOptions.java:
##########
@@ -198,6 +198,62 @@ public static synchronized ComputerOptions instance() {
""
);
+ public static final ConfigOption<Boolean> SNAPSHOT_WRITE =
+ new ConfigOption<>(
+ "snapshot.write",
+ "Whether write snapshot of input vertex and edge
partitions",
+ allowValues(true, false),
+ false
+ );
+
+ public static final ConfigOption<Boolean> SNAPSHOT_LOAD =
+ new ConfigOption<>(
+ "snapshot.load",
+ "Whether use snapshot of input vertex and edge partitions",
+ allowValues(true, false),
+ false
+ );
+
+ public static final ConfigOption<String> SNAPSHOT_VIEW_KEY =
+ new ConfigOption<>(
+ "snapshot.view_key",
+ "View key of target snapshot",
Review Comment:
Maybe we can use `SNAPSHOT_NAME` instead, just a user-defined unique
identifier of the snapshot.
--
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]