commit | 31c9ae5af22363f0a7f37f12022b4bd2aed4a812 | [log] [tgz] |
---|---|---|
author | Michael Blow <mblow@apache.org> | Thu Jun 01 20:04:10 2023 -0400 |
committer | Michael Blow <mblow@apache.org> | Fri Jun 02 13:03:07 2023 +0000 |
tree | 19afce3d1091db98ea175046d959b9f0be0cf5ce | |
parent | 46ca03f9356e7da6b0b1cba3be68c152fecd8e13 [diff] |
[NO ISSUE][HYR][CFG] Support custom ranged long byte units Change-Id: Ib456a75dd8de5989fff87b34a7c5b7b1d4a6d9de Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/17587 Reviewed-by: Michael Blow <mblow@apache.org> Reviewed-by: Murtadha Hubail <mhubail@apache.org> Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu> Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/config/OptionTypes.java b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/config/OptionTypes.java index d4c17e4..5970abb 100644 --- a/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/config/OptionTypes.java +++ b/hyracks-fullstack/hyracks/hyracks-control/hyracks-control-common/src/main/java/org/apache/hyracks/control/common/config/OptionTypes.java
@@ -431,4 +431,8 @@ node.put(fieldName, (long) value); } } + + public static final IOptionType<Long> getRangedLongByteUnit(long min, long max) { + return new LongByteUnit(min, max); + } }