diff --git a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/DecodeFunction.java b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/DecodeFunction.java index 92a0b55376e..042e6b4f98d 100644 --- a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/DecodeFunction.java +++ b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/DecodeFunction.java @@ -31,7 +31,12 @@ import java.util.HashSet; import java.util.List; import java.util.Set; - +/** + * DecodeFunction + * description: decode(binary, string) + * Decode using the supplied character set (' US-ASCII ', 'ISO-8859-1', 'UTF-8', 'UTF-16BE', 'UTF-16LE', 'UTF-16'). + * If either parameter is empty, the result will also be empty. + */ @TransformFunction(names = {"decode"}) public class DecodeFunction implements ValueParser { diff --git a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/EncodeFunction.java b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/EncodeFunction.java index 64a7e6aea46..8196c529fcd 100644 --- a/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/EncodeFunction.java +++ b/inlong-sdk/transform-sdk/src/main/java/org/apache/inlong/sdk/transform/process/function/EncodeFunction.java @@ -31,7 +31,12 @@ import java.util.HashSet; import java.util.List; import java.util.Set; - +/** + * EncodeFunction + * description: encode(string1, string2) + * Encode using the provided character set (' US-ASCII ', 'ISO-8859-1', 'UTF-8', 'UTF-16BE', 'UTF-16LE', 'UTF-16'). + * If either parameter is empty, the result will also be empty. + */ @TransformFunction(names = {"encode"}) public class EncodeFunction implements ValueParser {