A reloadable CSV file-based lookup service. The first line of the csv file is considered as header.
lookup, cache, enrich, join, csv, reloadable, key, value
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.
Display Name | API Name | Default Value | Allowable Values | Description |
---|---|---|---|---|
CSV File | csv-file | Path to a CSV File in which the key value pairs can be looked up. This property requires exactly one file to be provided.. Supports Expression Language: true (will be evaluated using variable registry only) | ||
CSV Format | CSV Format | Default Format |
| Specifies which "format" the CSV data is in, or specifies if custom formatting should be used. |
Character Set | Character Set | UTF-8 | The Character Encoding that is used to decode the CSV file. Supports Expression Language: true (will be evaluated using variable registry only) | |
Lookup Key Column | lookup-key-column | The field in the CSV file that will serve as the lookup key. This is the field that will be matched against the property specified in the lookup processor. Supports Expression Language: true (will be evaluated using variable registry only) | ||
Ignore Duplicates | ignore-duplicates | true |
| Ignore duplicate keys for records in the CSV file. |
Value Separator | Value Separator | , | The character that is used to separate values/fields in a CSV Record. If the property has been specified via Expression Language but the expression gets evaluated to an invalid Value Separator at runtime, then it will be skipped and the default Value Separator will be used. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [CSV Format] Property has a value of "Custom Format". | |
Quote Character | Quote Character | " | The character that is used to quote values so that escape characters do not have to be used. If the property has been specified via Expression Language but the expression gets evaluated to an invalid Quote Character at runtime, then it will be skipped and the default Quote Character will be used. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [CSV Format] Property has a value of "Custom Format". | |
Quote Mode | Quote Mode | Quote Minimal |
| Specifies how fields should be quoted when they are written This Property is only considered if the [CSV Format] Property has a value of "Custom Format". |
Comment Marker | Comment Marker | The character that is used to denote the start of a comment. Any line that begins with this comment will be ignored. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [CSV Format] Property has a value of "Custom Format". | ||
Escape Character | Escape Character | \ | The character that is used to escape characters that would otherwise have a specific meaning to the CSV Parser. If the property has been specified via Expression Language but the expression gets evaluated to an invalid Escape Character at runtime, then it will be skipped and the default Escape Character will be used. Setting it to an empty string means no escape character should be used. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) This Property is only considered if the [CSV Format] Property has a value of "Custom Format". | |
Trim Fields | Trim Fields | true |
| Whether or not white space should be removed from the beginning and end of fields This Property is only considered if the [CSV Format] Property has a value of "Custom Format". |
Lookup Value Column | lookup-value-column | Lookup value column. Supports Expression Language: true (will be evaluated using variable registry only) |
Required Permission | Explanation |
---|---|
read filesystem | Provides operator the ability to read from any file that NiFi has access to. |