CSVRecordLookupService¶
Description¶
A reloadable CSV file-based lookup service. When the lookup key is found in the CSV file, the columns are returned as a Record. All returned fields will be strings. The first line of the csv file is considered as header.
Properties¶
In the list below required Properties are shown with an asterisk (*). Other properties 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 Format * |
CSV Format |
default |
|
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. |
|
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. |
||
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. |
||
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. |
|
Quote Mode * |
Quote Mode |
MINIMAL |
|
Specifies how fields should be quoted when they are written |
Trim Fields * |
Trim Fields |
true |
|
Whether or not white space should be removed from the beginning and end of fields |
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. |
|
CSV File * |
csv-file |
Path to a CSV File in which the key value pairs can be looked up. |
||
Ignore Duplicates * |
ignore-duplicates |
true |
|
Ignore duplicate keys for records in the CSV file. |
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. |
State management¶
This component does not store state.
Restricted¶
Restrictions¶
Required Permission |
Explanation |
---|---|
read filesystem |
Provides operator the ability to read from any file that NiFi has access to. |
System Resource Considerations¶
This component does not specify system resource considerations.