This processor compresses and decompresses the contents of FlowFiles using a user-specified compression algorithm.
Uses Attributes:
Attribute Name | Description |
---|---|
mime.type | If the Compression Format is set to use mime.type attribute ,
this attribute is used to determine the compression type. Otherwise, this attribute is ignored. |
Modifies Attributes:
Attribute Name | Description |
---|---|
mime.type | If the Mode property is set to compress , the appropriate MIME Type is set. If the
Mode property is set to decompress and the file is successfully decompressed,
this attribute is removed, as the MIME Type is no longer known.
|
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. If a property has a default value, it is indicated. If a property supports the use of the NiFi Expression Language (or simply, "expression language"), that is also indicated.
mime.type
attribute.
If the attribute is not present, the FlowFile will be routed to
'failure'. If the attribute is present but does not denote
one of the supported compression formats, the FlowFile will be
routed to 'success' without being modified. This allows
CompressContent
to follow the
IdentifiyMimeType Processor
so that files that are
compressed can automatically be decompressed and files that are not
compressed will continue on.
Relationships: