private String hex(String input) {
        StringBuilder hexString = new StringBuilder();
        for (char c : input.toCharArray()) {
            hexString.append(Integer.toHexString((int) c).toUpperCase());
        }
        return hexString.toString();
    }
HexFunction  ->  hex(dataStr)
description:
- Return the string obtained by converting the dataStr to hexadecimal if 'dataStr' can be parsed into numeric
- Return the string obtained by converting the ASCII code corresponding to each character to hexadecimal otherwise
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/arithmetic/HexFunction.java