Description:

Merges a Group of FlowFiles together based on a user-defined strategy and packages them into a single FlowFile. It is recommended that the Processor be configured with only a single incoming connection, as Group of FlowFiles will not be created from FlowFiles in different connections. This processor updates the mime.type attribute as appropriate.

Additional Details...

Tags: merge, content, correlation, tar, zip, stream, concatenation, archive, flowfile-stream, flowfile-stream-v3

Properties:

In the list below, the names of required properties appear in bold. Anyother properties (not in bold) are considered optional. The table also indicates any default values, whether a property supports the NiFi Expression Language (or simply EL), and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the nifi.properties file has an entry for the property nifi.sensitive.props.key.

NameDescriptionDefault ValueValid ValuesELSensitive
Merge StrategySpecifies the algorithm used to merge content. The 'Defragment' algorithm combines fragments that are associated by attributes back into a single cohesive FlowFile. The 'Bin-Packing Algorithm' generates a FlowFile populated by arbitrarily chosen FlowFilesBin-Packing Algorithm
  • Bin-Packing Algorithm
  • Defragment
NoNo
Merge FormatDetermines the format that will be used to merge the content.Binary Concatenation
  • TAR
  • ZIP
  • FlowFile Stream, v3
  • FlowFile Stream, v2
  • FlowFile Tar, v1
  • Binary Concatenation
NoNo
Attribute StrategyDetermines which FlowFile attributes should be added to the bundle. If 'Keep All Unique Attributes' is selected, any attribute on any FlowFile that gets bundled will be kept unless its value conflicts with the value from another FlowFile. If 'Keep Only Common Attributes' is selected, only the attributes that exist on all FlowFiles in the bundle, with the same value, will be preserved.Keep Only Common Attributes
  • Keep Only Common Attributes
  • Keep All Unique Attributes
NoNo
Correlation Attribute NameIf specified, like FlowFiles will be binned together, where 'like FlowFiles' means FlowFiles that have the same value for this Attribute. If not specified, FlowFiles are bundled by the order in which they are pulled from the queue.NoNo
Minimum Number of EntriesThe minimum number of files to include in a bundle1NoNo
Maximum Number of EntriesThe maximum number of files to include in a bundle. If not specified, there is no maximum.NoNo
Minimum Group SizeThe minimum size of for the bundle0 BNoNo
Maximum Group SizeThe maximum size for the bundle. If not specified, there is no maximum.NoNo
Max Bin AgeThe maximum age of a Bin that will trigger a Bin to be complete. Expected format is <duration> <time unit> where <duration> is a positive integer and time unit is one of seconds, minutes, hoursNoNo
Maximum number of BinsSpecifies the maximum number of bins that can be held in memory at any one time100NoNo
Header FileFilename specifying the header to use. If not specified, no header is supplied. This property is valid only when using the binary-concatenation merge strategy; otherwise, it is ignored.NoNo
Footer FileFilename specifying the footer to use. If not specified, no footer is supplied. This property is valid only when using the binary-concatenation merge strategy; otherwise, it is ignored.NoNo
Demarcator FileFilename specifying the demarcator to use. If not specified, no demarcator is supplied. This property is valid only when using the binary-concatenation merge strategy; otherwise, it is ignored.NoNo
Compression LevelSpecifies the compression level to use when using the Zip Merge Format; if not using the Zip Merge Format, this value is ignored1
  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
NoNo
Keep PathIf using the Zip or Tar Merge Format, specifies whether or not the FlowFiles' paths should be included in their entry names; if using other merge strategy, this value is ignoredfalse
  • true
  • false
NoNo

Relationships:

NameDescription
mergedThe FlowFile containing the merged content
originalThe FlowFiles that were used to create the bundle
failureIf the bundle cannot be created, all FlowFiles that would have been used to created the bundle will be transferred to failure