Apache Nifi 简明教程

Apache NiFi - FlowFile

FlowFile 是 Apache NiFi 中一个基本的处理实体。它包含数据内容和属性,这些内容和属性由 NiFi 处理器用于处理数据。文件内容通常包含从源系统获取的数据。Apache NiFi FlowFile 的最常见属性如下 -

A flowfile is a basic processing entity in Apache NiFi. It contains data contents and attributes, which are used by NiFi processors to process data. The file content normally contains the data fetched from source systems. The most common attributes of an Apache NiFi FlowFile are −

flowfile

UUID

这是通用唯一标识符,它是由 NiFi 生成的 FlowFile 的唯一标识。

This stands for Universally Unique Identifier, which is a unique identity of a flowfile generated by NiFi.

Filename

此属性包含该流文件的文件名,并且不应包含任何目录结构。

This attribute contains the filename of that flowfile and it should not contain any directory structure.

File Size

它包含 Apache NiFi FlowFile 的大小。

It contains the size of an Apache NiFi FlowFile.

mime.type

它指定此 FlowFile 的 MIME 类型。

It specifies the MIME Type of this FlowFile.

path

此属性包含流文件所属文件的相对路径,但不包含文件名。

This attribute contains the relative path of a file to which a flowfile belongs and does not contain the file name.