UpdateAttribute 2025.10.2.19

バンドル

org.apache.nifi | nifi-update-attribute-nar

説明

属性式言語を使用して FlowFile の属性を更新、および/または正規表現に基づいて属性を削除します。

タグ

属性式言語、属性、削除、変更、状態、更新

入力要件

REQUIRED

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

false

プロパティ

プロパティ

説明

属性削除式

Regular expression for attributes to be deleted from FlowFiles. Existing attributes that match will be deleted regardless of whether they are updated by this processor.

ステートフル変数 初期値

変数のセット/リファレンスにステートを使用する場合、この値はステート変数の初期値を設定するために使用されます。これは、 @OnScheduled メソッドにおいて、ステートに変数の値が含まれていない場合にのみ使用されます。ステートフルに実行する場合は必須ですが、必要であれば空でもかまいません。

ステートの状態

Select whether or not state will be stored. Selecting 'Stateless' will offer the default functionality of purely updating the attributes on a FlowFile in a stateless manner. Selecting a stateful option will not only store the attributes on the FlowFile but also in the Processors state. See the 'Stateful Usage' topic of the 'Additional Details'section of this processor's documentation for more information

canonical-value-lookup-cache-size

正規ルックアップ値をキャッシュに格納する数を指定します。

状態管理

スコープ

説明

LOCAL

FlowFile 上だけでなく、再帰的に参照されるステートフル変数として値を格納するオプションを提供します。

リレーションシップ

名前

説明

success

成功した FlowFiles はすべてこのリレーションシップにルーティングされます。

属性の書き込み

名前

説明

詳細を見る

このプロセッサーは、追加詳細で説明されているように、ゼロ個以上の属性を書き込んだり、削除したりすることができます。

ユースケース

新しい FlowFile 属性を追加します。

FlowFile 属性を新しい値で上書きします。

ファイル名の変更