This is an automated email from the ASF dual-hosted git repository.

mblow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/asterixdb.git

commit 31c9ae5af22363f0a7f37f12022b4bd2aed4a812
Author: Michael Blow <[email protected]>
AuthorDate: Thu Jun 1 20:04:10 2023 -0400

    [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 <[email protected]>
    Reviewed-by: Murtadha Hubail <[email protected]>
    Integration-Tests: Jenkins <[email protected]>
    Tested-by: Jenkins <[email protected]>
---
 .../java/org/apache/hyracks/control/common/config/OptionTypes.java    | 4 ++++
 1 file changed, 4 insertions(+)

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 d4c17e47b3..5970abb4c4 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 @@ public class OptionTypes {
             node.put(fieldName, (long) value);
         }
     }
+
+    public static final IOptionType<Long> getRangedLongByteUnit(long min, long 
max) {
+        return new LongByteUnit(min, max);
+    }
 }

Reply via email to