CalculateRecordStats 2025.10.9.21¶
Bundle¶
org.apache.nifi | nifi-standard-nar
Description¶
Counts the number of Records in a record set, optionally counting the number of elements per category, where the categories are defined by user-defined properties.
Tags¶
metrics, record, stats
Input Requirement¶
REQUIRED
Supports Sensitive Dynamic Properties¶
false
Properties¶
| Property | Description |
|---|---|
| record-stats-limit | Limit the number of individual stats that are returned for each record path to the top N results. |
| record-stats-reader | A record reader to use for reading the records. |
Relationships¶
| Name | Description |
|---|---|
| failure | If a FlowFile cannot be processed for any reason, it is routed to this Relationship. |
| success | All FlowFiles that are successfully processed, are routed to this Relationship. |
Writes attributes¶
| Name | Description |
|---|---|
| record.count | A count of the records in the record set in the FlowFile. |
| recordStats.<User Defined Property Name>.count | A count of the records that contain a value for the user defined property. |
| recordStats.<User Defined Property Name>.<value>.count | Each value discovered for the user defined property will have its own count attribute. Total number of top N value counts to be added is defined by the limit configuration. |