You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Exists in two variants:
44
44
The transformation defines the following configurations:
45
45
46
46
-`field.name` - The name of the field which should be used as the topic name. If `null` or empty, the entire key or value is used (and assumed to be a string). By default is `null`.
47
-
-`skip.missing.or.null` - In case the source of the new topic name is `null` or missing, should a record be silently passed without transformation. By default is `false`.
47
+
-`skip.missing.or.null` - In case the source of the new topic name is `null` or missing, should a record be silently passed without transformation. By default, is `false`.
48
48
49
49
Here is an example of this transformation configuration:
This transformation replaces a string value with its hash.
60
+
61
+
The transformation can hash either the whole key or value (in this case, it must have `STRING` type) or a field in them (in this case, it must have `STRUCT` type and the field's value must be `STRING`).
62
+
63
+
Exists in two variants:
64
+
65
+
-`io.aiven.kafka.connect.transforms.Hash$Key` - works on keys;
66
+
-`io.aiven.kafka.connect.transforms.Hash$Value` - works on values.
67
+
68
+
The transformation defines the following configurations:
69
+
70
+
-`field.name` - The name of the field which value should be hashed. If `null` or empty, the entire key or value is used (and assumed to be a string). By default, is `null`.
71
+
-`function` - The name of the hash function to use. The supported values are: `md5`, `sha1`, and `sha256`.
72
+
-`skip.missing.or.null` - In case the value to be hashed is `null` or missing, should a record be silently passed without transformation. By default, is `false`.
73
+
74
+
Here is an example of this transformation configuration:
0 commit comments