AttributesToCSV 2025.10.2.19¶
捆绑包¶
org.apache.nifi | nifi-standard-nar
描述¶
Generates a CSV representation of the input FlowFile Attributes. The resulting CSV can be written to either a newly generated attribute named 'CSVAttributes' or written to the FlowFile as content. If the attribute value contains a comma, newline or double quote, then the attribute value will be escaped with double quotes. Any double quote characters in the attribute value are escaped with another double quote.
输入要求¶
REQUIRED
支持敏感的动态属性¶
false
属性¶
属性 |
描述 |
|---|---|
attribute-list |
要包含在生成的 CSV 中的属性列表,以逗号分隔。如果将此值留空,则会包括所有现有属性。此属性列表区分大小写,并支持包含逗号的属性名称。如果找不到列表中指定的属性,则它将 CSV 以空字符串或 null 发送给结果,具体视“Null Value”属性而定。如果在此列表中指定了核心属性且“Include Core Attributes”属性为 false,则将包含该核心属性。属性列表 ALWAYS 优先。 |
attributes-regex |
Regular expression that will be evaluated against the flow file attributes to select the matching attributes. This property can be used in combination with the attributes list property. The final output will contain a combination of matches found in the ATTRIBUTE_LIST and ATTRIBUTE_REGEX. |
目标 |
控制 CSV 值是作为新的 FlowFile 属性“CSVData”写入还是在 FlowFile 内容中写入。 |
include-core-attributes |
Determines if the FlowFile org.apache.nifi.flowfile.attributes. CoreAttributes, which are contained in every FlowFile, should be included in the final CSV value generated. Core attributes will be added to the end of the CSVData and CSVSchema strings. The Attribute List property overrides this setting. |
include-schema |
如果为 true,则架构(属性名称)也将转换为 CSV 字符串,该字符串将应用于名为“CSVSchema”的新属性,或者根据 DESTINATION 属性设置应用于内容的第一行。 |
null-value |
如果为 true,则不存在的或空的属性在生成的 CSV 中将为“null”。如果为 false,则将空字符串放置在 CSV 中 |
关系¶
名称 |
描述 |
|---|---|
failure |
将属性转换为 CSV 失败 |
success |
将属性转换为 CSV 成功 |
写入属性¶
名称 |
描述 |
|---|---|
CSVSchema |
架构的 CSV 表示 |
CSVData |
属性的 CSV 表示 |