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

PropertyDescription
record-stats-limitLimit the number of individual stats that are returned for each record path to the top N results.
record-stats-readerA record reader to use for reading the records.

Relationships

NameDescription
failureIf a FlowFile cannot be processed for any reason, it is routed to this Relationship.
successAll FlowFiles that are successfully processed, are routed to this Relationship.

Writes attributes

NameDescription
record.countA count of the records in the record set in the FlowFile.
recordStats.<User Defined Property Name>.countA count of the records that contain a value for the user defined property.
recordStats.<User Defined Property Name>.<value>.countEach 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.