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
These boolean functions are available for use with `if` configuration :
31
-
32
-
| Function | Description | Syntax |
33
-
| --------------| --------------|-----------|
34
-
|`contains`| Returns `true` if an array field's value contains the specified value |`{% raw %}{{ contains(field, value) }}{% endraw %}`|
35
-
|`ends_with`| Returns `true` if an a string field's value end with the specified string suffix |`{% raw %}{{ ends_with(field, suffix) }}{% endraw %}`|
36
-
|`equals`| Returns `true` if an a string or number fields's value equals the specified value |`{% raw %}{{ equals(field, value) }}{% endraw %}`|
37
-
|`exists`| Returns `true` if an the specified field exists |`{% raw %}{{ exists(struct, field) }}{% endraw %}`|
38
-
|`is_null`| Returns `true` if a field's value is null |`{% raw %}{{ is_null(field) }}{% endraw %}`|
39
-
|`matches`| Returns `true` if a field's value match the specified regex |`{% raw %}{{ matches(field, regex) }}{% endraw %}`|
40
-
|`starts_with`| Returns `true` if an a string field's value start with the specified string prefix |`{% raw %}{{ starts_with(field, prefix) }}{% endraw %}`|
41
-
30
+
These conditional functions are available for use with the `if` config property :
31
+
32
+
| Function | Since | Description | Syntax |
33
+
| --------------| --------| -------|-----------|
34
+
|`and`|`2.4.0`| Checks if all of the given conditional expressions are `true`. |`{{ and(booleanExpression1, booleanExpression2, ...) }}`|
35
+
|`contains`|| Returns `true` if an array field's value contains the specified value |`{{ contains(field, value) }}`|
36
+
|`ends_with`|| Returns `true` if an a string field's value end with the specified string suffix |`{{ ends_with(field, suffix) }}`|
37
+
|`equals`|| Returns `true` if an a string or number fields's value equals the specified value |`{{ equals(field, value) }}`|
38
+
|`exists`|| Returns `true` if an the specified field exists |`{{ exists(struct, field) }}{% endraw %}`|
39
+
|`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) }}`|
40
+
|`is_null`|| Returns `true` if a field's value is null |`{{ is_null(field) }}`|
41
+
|`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) }}`|
42
+
|`matches`|| Returns `true` if a field's value match the specified regex |`{{ matches(field, regex) }}`|
43
+
|`starts_with`|| Returns `true` if an a string field's value start with the specified string prefix |`{{ starts_with(field, prefix) }}`|
44
+
|`or`|`2.4.0`| Checks if at least one of the given conditional expressions is `true`.. |`{{ or(booleanExpression1, booleanExpression2, ...) }}`|
42
45
43
46
**Limitations** :
44
-
*`if` property does not support binary operator and then a single condition can be configured.
45
-
* condition cannot be used to easily create pipeline branching.
47
+
* conditions cannot be used to easily create pipeline branching.
|`reader.xpath.expression`|| The XPath expression used extract data from XML input files |`String`|`/`| High |
88
+
|`reader.xpath.result.type`|| The expected result type for the XPath expression in [NODESET, STRING]|`String`|`NODESET`| High |
89
+
|`reader.xml.force.array.on.fields`|| The comma-separated list of fields for which an array-type must be forced |`List`|`-`| High |
90
+
|`reader.xml.parser.validating.enabled` | `2.2.0` | Specifies that the parser will validate documents as they are parsed (default: false).";
91
+
|`reader.xml.parser.namespace.aware.enabled` | `2.2.0` | Specifies that the XML parser will provide support for XML namespaces (default: false).";
92
+
|`reader.xml.exclude.empty.elements` | `2.2.0` | Specifies that the reader should exclude element having no field (default: false).";
93
+
|`reader.xml.exclude.node.attributes` | `2.4.0` | Specifies that the reader should exclude all node attributes (default: false).";
94
+
|`reader.xml.exclude.node.attributes.in.namespaces` | `2.4.0` | Specifies that the reader should only exclude node attributes in the defined list of namespaces.";
95
+
|`reader.xml.data.type.inference.enabled` | `2.3.0` | Specifies that the reader should try to infer the type of data nodes (default: false).";
96
+
|`reader.xml.attribute.prefix` | `2.4.0` | If set, the name of attributes will be prepended with the specified prefix when they are added to a record (default: '').";
97
+
91
98
## XxxMetadataFileInputReader
92
99
93
100
The `FileInputMetadataReader`s can be used to send a single record per file containing metadata, i.e.: `name`, `path`, `hash`, `lastModified`, `size`, etc.
0 commit comments