private String mergeByteArray(byte[] lengthBytes, byte[] dateBytes) throws IOException {
        ByteArrayOutputStream outputStream = new ByteArrayOutputStream(
                lengthBytes.length + dateBytes.length);
        outputStream.write(lengthBytes);
        outputStream.write(dateBytes);
        return new String(outputStream.toByteArray(), CHARSET);
    }
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