public static byte[] intToLowByteArray(int length) {
        return new byte[]{
                (byte) (length & 0xFF),
                (byte) ((length >> 8) & 0xFF),
                (byte) ((length >> 16) & 0xFF),
                (byte) ((length >> 24) & 0xFF)
        };
    }
CompressFunction  ->  compress(string_to_compress[,compress_type(default:deflater)])
description:
- Return NULL if 'string_to_compress' is NULL
- Return "" if 'string_to_compress' is ""
- Return the result as a binary string
Note: This function supports three compression algorithms: deflater, gzip and zip. 'compress_type' defaults to defer.
In addition, in order to output the compressed results in the form of strings, this method uses the ISO_8859_1
character set.
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/compression/CompressFunction.java