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.

タグ

attributes, csv, flowfile

入力要件

REQUIRED

機密動的プロパティをサポート

false

プロパティ

プロパティ

説明

attribute-list

結果の CSV に含まれる属性のカンマ区切りリスト。この値を空にすると、既存の属性がすべて含まれます。この属性リストは大文字と小文字を区別し、カンマを含む属性名をサポートします。リストで指定された属性が見つからない場合、 'Null Value' プロパティに応じて、空の文字列または null が結果の CSV に出力されます。このリストにコア属性が指定されていて、 '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.

destination

CSV の値を新しいフローファイル属性 'CSVData' として書き込むか、フローファイルのコンテンツに書き込むかを制御します。

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 文字列にも変換され、 DESTINATION プロパティの設定に応じて、 'CSVSchema' という新しい属性に適用されるか、コンテンツの最初の行に適用されます。

null-value

trueの場合、存在しない属性や空の属性が、結果の CSV にあります。falseの場合、空の文字列が CSV に設置

リレーションシップ

名前

説明

failure

CSV への属性変換に失敗しました。

success

CSV への属性の変換に成功しました。

属性の書き込み

名前

説明

CSVSchema

CSV スキーマの表現

CSVData

CSV 属性表現