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: connect-file-pulse-expression/src/main/java/io/streamthoughts/kafka/connect/filepulse/expression/function/ExpressionFunctionExecutors.java
Copy file name to clipboardExpand all lines: connect-file-pulse-expression/src/test/java/io/streamthoughts/kafka/connect/filepulse/expression/accessor/MapAdaptablePropertyAccessorTest.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,13 @@ public void should_read_property_from_map_given_simple_key() {
|`and`|`2.4.0`| Checks if all of the given conditional expressions are `true`. |`{{ and(booleanExpression1, booleanExpression2, ...) }}`|
74
-
|`concat`|| Concatenate two or more string expressions. |`{{ concat(expr1, expr2, ...) }}`|
75
-
|`concat_ws`|| Concatenate two or more string expressions, using the specified separator between each. |`{{ concat_ws(separator, prefix, suffix, expr1, expr2, ...) }}`|
76
-
|`contains`|| Returns `true` if an array field's value contains the specified value |`{{ contains(array, 'value') }}`|
77
-
|`converts`|| Converts a field's value into the specified type |`{{ converts(field_expr, INTEGER) }}`|
78
-
|`ends_with`|| Returns `true` if a string field's value end with the specified string suffix |`{{ ends_with(field_expr, 'suffix') }}`|
79
-
|`equals`|| Returns `true` if a string or number fields's value equals the specified value |`{{ equals(field_expr, value) }}`|
80
-
|`exists`|| Returns `true` if an object has the specified field |`{{ exists(obj_expr, field_expr) }}`|
81
-
|`extract_array`|| Returns the element at the specified position of the specified array |`{{ extract_array(array, 0) }}`|
82
-
|`gt`|`2.4.0`| Executes "*greater than operation*" on two values and returns `true` if the first value is greater than the second value, `false`, otherwise. |`{{ gt(expressionValue1, expressionValue2) }}`|
83
-
|`hash`|| Hash a given string expression, using murmur2 algorithm |`{{ hash(field_expr) }}`|
84
-
|`if`|`2.4.0`| Evaluates the given boolean expression and returns one value if `true` and another value if `false`. |`{{ if(booleanExpression, valueIfTrue, valueIfFalse ) }}`|
85
-
|`is_null`|| Returns `true` if a field's value is null |`{{ is_null(field) }}`|
86
-
|`length`|| Returns the number of elements into an array of the length of an string field |`{{ length(array) }}`|
87
-
|`lt`|`2.4.0`| Executes "*less than operation*" on two values and returns `true` if the first value is less than the second value, `false`, otherwise. |`{{ lt(expressionValue1, expressionValue2) }}`|
88
-
|`lowercase`|| Converts all of the characters in a string field's value to lower case |`{{ lowercase(field) }}`|
89
-
|`matches`|| Returns `true` if a field's value match the specified regex |`{{ matches(field_expr, 'regex') }}`|
90
-
|`md5`|| Computes the MD5 hash of string expression |`{{ md5(field_expr) }}`|
91
-
|`nlv`|| Sets a default value if a field's value is null |`{{ length(array) }}`|
92
-
|`not`|`2.4.0`| Reverses a boolean value |`{{ not(booleanExpression) }}`|
93
-
|`or`|`2.4.0`| Checks if at least one of the given conditional expressions is `true`.. |`{{ or(booleanExpression1, booleanExpression2, ...) }}`|
94
-
|`replace_all `|| Replaces every subsequence of the field's value that matches the given pattern with the given replacement string. |`{{ replace_all(field_expr, 'regex', 'replacement') }}`|
95
-
|`split`|| Split a string field's value into an array using the specified regex or character |`{{ split(field_expr, regex) }}` or `{{ split(field_expr, regex, limit) }}`|
96
-
|`starts_with`|| Returns `true` if an a string field's value start with the specified string prefix |`{{ starts_with(field_expr, 'prefix') }}`|
|`and`|`2.4.0`| Checks if all of the given conditional expressions are `true`. |`{{ and(booleanExpression1, booleanExpression2, ...) }}`|
74
+
|`concat`|| Concatenate two or more string expressions. |`{{ concat(expr1, expr2, ...) }}`|
75
+
|`concat_ws`|| Concatenate two or more string expressions, using the specified separator between each. |`{{ concat_ws(separator, prefix, suffix, expr1, expr2, ...) }}`|
76
+
|`contains`|| Returns `true` if an array field's value contains the specified value |`{{ contains(array, 'value') }}`|
77
+
|`converts`|| Converts a field's value into the specified type |`{{ converts(field_expr, INTEGER) }}`|
78
+
|`ends_with`|| Returns `true` if a string field's value end with the specified string suffix |`{{ ends_with(field_expr, 'suffix') }}`|
79
+
|`equals`|| Returns `true` if a string or number fields's value equals the specified value |`{{ equals(field_expr, value) }}`|
80
+
|`exists`|| Returns `true` if an object has the specified field |`{{ exists(obj_expr, field_expr) }}`|
81
+
|`extract_array`|| Returns the element at the specified position of the specified array |`{{ extract_array(array, 0) }}`|
82
+
|`gt`|`2.4.0`| Executes "*greater than operation*" on two values and returns `true` if the first value is greater than the second value, `false`, otherwise. |`{{ gt(expressionValue1, expressionValue2) }}`|
83
+
|`hash`|| Hash a given string expression, using murmur2 algorithm |`{{ hash(field_expr) }}`|
84
+
|`if`|`2.4.0`| Evaluates the given boolean expression and returns one value if `true` and another value if `false`. |`{{ if(booleanExpression, valueIfTrue, valueIfFalse ) }}`|
85
+
|`is_null`|| Returns `true` if a field's value is null |`{{ is_null(field) }}`|
86
+
|`is_empty`|| Returns `true` if an array as no elements or a string field has no characters |`{{ is_null(field) }}`|
87
+
|`length`|| Returns the number of elements into an array or the length of a string field |`{{ length(array) }}`|
88
+
|`lt`|`2.4.0`| Executes "*less than operation*" on two values and returns `true` if the first value is less than the second value, `false`, otherwise. |`{{ lt(expressionValue1, expressionValue2) }}`|
89
+
|`lowercase`|| Converts all of the characters in a string field's value to lower case |`{{ lowercase(field) }}`|
90
+
|`matches`|| Returns `true` if a field's value match the specified regex |`{{ matches(field_expr, 'regex') }}`|
91
+
|`md5`|| Computes the MD5 hash of string expression |`{{ md5(field_expr) }}`|
92
+
|`nlv`|| Sets a default value if a field's value is null |`{{ length(array) }}`|
93
+
|`not`|`2.4.0`| Reverses a boolean value |`{{ not(booleanExpression) }}`|
94
+
|`or`|`2.4.0`| Checks if at least one of the given conditional expressions is `true`.. |`{{ or(booleanExpression1, booleanExpression2, ...) }}`|
95
+
|`replace_all `|| Replaces every subsequence of the field's value that matches the given pattern with the given replacement string. |`{{ replace_all(field_expr, 'regex', 'replacement') }}`|
96
+
|`split`|| Split a string field's value into an array using the specified regex or character |`{{ split(field_expr, regex) }}` or `{{ split(field_expr, regex, limit) }}`|
97
+
|`starts_with`|| Returns `true` if an a string field's value start with the specified string prefix |`{{ starts_with(field_expr, 'prefix') }}`|
97
98
|`timestamp_diff`|`2.4.0`| Calculates the amount of time between two epoch times in seconds or milliseconds. For more information on `unit` see [ChronoUnit](https://docs.oracle.com/javase/8/docs/api/java/time/temporal/ChronoUnit.html). |`{{ timestamp_diff(unit, epoch_time_expression1, epoch_time_expression2) }}`|
98
-
|`to_timestamp`|`2.4.0`| Parses a given string value and returns the epoch-time in milliseconds. |`{{ to_timestamp(datetime_expression, pattern [, timezone]) }}`|
99
-
|`trim`|| Trims the spaces from the beginning and end of a string. |`{{ trim(field_expr) }}`|
100
-
|`unix_timestamp`|`2.4.0`| Returns the current time in milliseconds. |`{{ unix_timestamp() }}`|
101
-
|`uppercase`|| Converts all of the characters in a string field's value to upper case |`{{ uppercase(field_expr) }}`|
102
-
|`uuid`|| Create a Universally Unique Identifier (UUID) |`{{ uuid() }}`|
99
+
|`to_timestamp`|`2.4.0`| Parses a given string value and returns the epoch-time in milliseconds. |`{{ to_timestamp(datetime_expression, pattern [, timezone]) }}`|
100
+
|`trim`|| Trims the spaces from the beginning and end of a string. |`{{ trim(field_expr) }}`|
101
+
|`unix_timestamp`|`2.4.0`| Returns the current time in milliseconds. |`{{ unix_timestamp() }}`|
102
+
|`uppercase`|| Converts all of the characters in a string field's value to upper case |`{{ uppercase(field_expr) }}`|
103
+
|`uuid`|| Create a Universally Unique Identifier (UUID) |`{{ uuid() }}`|
0 commit comments