SegmentContent 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

Segments a FlowFile into multiple smaller segments on byte boundaries. Each segment is given the following attributes: fragment.identifier, fragment.index, fragment.count, segment.original.filename; these attributes can then be used by the MergeContent processor in order to reconstitute the original FlowFile

Tags

segment, split

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
Segment SizeThe maximum data size in bytes for each segment

Relationships

NameDescription
originalThe original FlowFile will be sent to this relationship
segmentsAll segments will be sent to this relationship. If the file was small enough that it was not segmented, a copy of the original is sent to this relationship as well as original

Writes attributes

NameDescription
fragment.identifierAll segments produced from the same parent FlowFile will have the same randomly generated UUID added for this attribute
fragment.indexA one-up number that indicates the ordering of the segments that were created from a single parent FlowFile
fragment.countThe number of segments generated from the parent FlowFile
segment.original.filenameThe filename of the parent FlowFile
segment.original.filenameThe filename will be updated to include the parent’s filename, the segment index, and the segment count

See also