RenameRecordField 2.3.0¶
BUNDLE¶
org.apache.nifi | nifi-standard-nar
DESCRIPTION¶
Renames one or more fields in each Record of a FlowFile. This Processor requires that at least one user-defined Property be added. The name of the Property should indicate a RecordPath that determines the field that should be updated. The value of the Property is the new name to assign to the Record Field that matches the RecordPath. The property value may use Expression Language to reference FlowFile attributes as well as the variables field.name
, field.value
, field.type
, and record.index
INPUT REQUIREMENT¶
REQUIRED
Supports Sensitive Dynamic Properties¶
false
PROPERTIES¶
Property |
Description |
---|---|
Record Reader |
Specifies the Controller Service to use for reading incoming data |
Record Writer |
Specifies the Controller Service to use for writing out the records |
RELATIONSHIPS¶
NAME |
DESCRIPTION |
---|---|
failure |
If a FlowFile cannot be transformed from the configured input format to the configured output format, the unchanged FlowFile will be routed to this relationship |
success |
FlowFiles that are successfully transformed will be routed to this relationship |
WRITES ATTRIBUTES¶
NAME |
DESCRIPTION |
---|---|
record.index |
This attribute provides the current row index and is only available inside the literal value expression. |
USE CASES¶
Rename a field in each Record to a specific, known name. |
Rename a field in each Record to a name that is derived from a FlowFile attribute. |
Rename a field in each Record to a new name that is derived from the current field name. |