baiyangtx commented on code in PR #4097:
URL: https://github.com/apache/amoro/pull/4097#discussion_r2836156019
##########
amoro-common/src/main/java/org/apache/amoro/Action.java:
##########
@@ -20,38 +20,33 @@
import org.apache.amoro.shade.guava32.com.google.common.base.Preconditions;
-import java.util.Arrays;
+import java.util.Locale;
+import java.util.Map;
import java.util.Objects;
+import java.util.concurrent.ConcurrentHashMap;
public final class Action {
private static final int MAX_NAME_LENGTH = 16;
-
- /** supported table formats of this action */
- private final TableFormat[] formats;
+ private static final Map<String, Action> registeredActions = new
ConcurrentHashMap<>();
private final String name;
- /**
- * the weight number of this action, the bigger the weight number, the
higher positions of
- * schedulers or front pages
- */
- private final int weight;
Review Comment:
Good idea.
--
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]