AttributesToCSV 2025.10.2.19¶
Pacote¶
org.apache.nifi | nifi-standard-nar
Descrição¶
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.
Requisito de entrada¶
REQUIRED
Oferece suporte a propriedades dinâmicas confidenciais¶
falso
Propriedades¶
Propriedade |
Descrição |
|---|---|
attribute-list |
Lista separada por vírgulas de atributos a serem incluídos no CSV resultante. Se esse valor for deixado em branco, todos os atributos existentes serão incluídos. Essa lista de atributos diferencia maiúsculas de minúsculas e aceita nomes de atributos que contenham vírgulas. Se um atributo especificado na lista não for encontrado, ele será emitido para o CSV resultante com uma cadeia de caracteres vazia ou nula, dependendo da propriedade “Null Value”. Se um atributo principal for especificado nessa lista e a propriedade “Include Core Attributes” for falsa, o atributo principal será incluído. A lista de atributos ALWAYS vence. |
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 |
Controla se o valor CSV é gravado como um novo atributo de FlowFile “CSVData” ou gravado no conteúdo do 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 |
Se for verdadeiro, o esquema (nomes de atributos) também será convertido em uma cadeia de caracteres CSV que será aplicada a um novo atributo chamado “CSVSchema” ou aplicada na primeira linha do conteúdo, dependendo da configuração da propriedade DESTINATION. |
null-value |
Se verdadeiro, um atributo não existente ou vazio será “nulo” no CSV resultante. Se for falso, uma cadeia de caracteres vazia será colocada no CSV |
Relações¶
Nome |
Descrição |
|---|---|
failure |
Falha ao converter os atributos para CSV |
success |
Atributos convertidos com sucesso para CSV |
Grava atributos¶
Nome |
Descrição |
|---|---|
CSVSchema |
Representação do esquema CSV |
CSVData |
Representação dos atributos CSV |