Skip to main content

HashAttribute

描述:

将几个数据流属性的键/值对一起进行哈希,并将哈希结果作为新属性添加。

标签:

attributes, hash, 属性, 哈希

参数:

如下列表中,必填参数则标识为加粗. 其他未加粗参数,则表示为可选参数。表中同时提到参数默认值设置.

名字默认值允许值列表描述
哈希结果属性名指定哈希结果存放的数据流属性名

动态参数:

名字描述
A flowfile attribute key for attribute inspectionA Regular Expression此正则表达式计算数据流属性值。如果正则表达式包含捕获组,则将使用该组的值来比较数据流的属性。否则,只有当原始流文件属性的值与给定的正则表达式匹配时,才会使用该属性的值。
不支持表达式语言

连线:

名字描述
success用于添加了哈希值的数据流输出到此连线
failure用于缺少必需属性的数据流输出到此连线

读取属性:

未提供。

写入属性:

名字描述
<Hash Value Attribute Key>This Processor adds an attribute whose value is the result of Hashing the existing FlowFile attributes. The name of this attribute is specified by the <Hash Value Attribute Key> property.

状态管理:

该组件不保存状态。

限制:

该组件没有限制

输入流要求:

组件必须提供输入流。

系统资源考量:

未提供。