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
속성¶
속성 |
설명 |
|---|---|
특성 목록 |
결과 CSV 에 포함할 특성을 쉼표로 구분한 목록입니다. 이 값을 비워두면 기존의 모든 특성이 포함됩니다. 이 특성 목록은 대/소문자를 구분하며 쉼표가 포함된 특성 이름을 지원합니다. 목록에 지정된 특성을 찾을 수 없는 경우 ‘Null Value’ 속성에 따라 빈 문자열 또는 null이 포함된 결과 CSV 로 전송됩니다. 이 목록에 Core 특성이 지정되어 있고 ‘Include Core Attributes’ 속성이 false인 경우 해당 Core 특성이 포함됩니다. 특성 목록 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 에 배치됩니다. |
관계¶
이름 |
설명 |
|---|---|
실패 |
특성을 CSV 로 변환하지 못함 |
성공 |
특성이 CSV 로 변환됨 |
Writes 특성¶
이름 |
설명 |
|---|---|
CSVSchema |
스키마의 CSV 표현 |
CSVData |
특성의 CSV 표현 |