Binary ZIP Reducer
Overview
Binary ZIP Reducer is a reducer that produces a JSON containing the Base64 encoding and the path of a ZIP file that contains files taken from the output of blocks of the reference context.
In other words, a Binary ZIP Reducer block, put after a context that generates files, aggregates those files in a ZIP archive.
Input
A Binary ZIP Reducer block has the following input variables:
base64
(string, required) Base64 encoding of the file to add to the output ZIP.path
(string, required) Name or path of the file to add to the output ZIP.
The input variables are valued as many times as there are iterations of the reference context.
Block properties
The properties of a Binary ZIP reducer block are accessed by editing the block and are divided into five groups:
-
Basic properties:
- Block name
- Component version (read only)
- Block ID (read only)
-
Functional:
- Context to reduce: reference context. It is chosen from a drop-down. To remove the choice, select Clear .
- ZIP File name: the name of the ZIP file to generate.
-
Deployment:
- Timeout: execution timeout expressed in minutes (m) or seconds (s).
- Replicas: number of required instances.
- Consumer Number: number of threads of the consumer, the software module of the block that provides input to process by taking it from the block's work queue.
- Memory: required memory.
- CPU: thousandths of a CPU required (for example: 1000 = 1 CPU).
-
Input: these properties correspond to the input variables and must be set to the output keys of blocks of the reference context.
-
Output: read-only, a memorandum of the contents of the output JSON object, that is:
- The Base64 encoding of the ZIP file.
- The name of the ZIP file.