@Override
    public Object parse(SourceData sourceData, int rowIndex, Context context) {
        Object stringObj = stringParser.parse(sourceData, rowIndex, context);
        if (stringObj == null) {
            return null;
        }
        String string = OperatorTools.parseString(stringObj);
        return Base64.getEncoder().encodeToString(string.getBytes(StandardCharsets.UTF_8));
    }
ToBase64Function  ->  to_base64(str)
description:
- Return NULL if 'str' is NULL;
- Return the base64-encoded result from 'str'.
inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/encryption/ToBase64Function.java