Gå til hovedinnhold

Batch Collector tool

The Batch Collector buffers translatable blocks and forwards them in groups of a configured size, instead of one at a time. It exists so that a downstream tool which is cheaper to call in bulk — for example a batch translation request — can receive several blocks together rather than block by block.

Non-block parts (layer markers, data, media) pass through immediately and are never buffered. Blocks accumulate until the batch reaches the configured size and are then released in order; any remaining blocks are flushed when the input stream ends. Stream order is preserved.

IDbatch
SourceBuilt-in
Categorytext-processing
Cardinalitymonolingual
Tagsbatch

Parameters

ParameterTypeDefaultDescription
sizeinteger10Number of blocks to collect before forwarding as a batch

Configure these parameters interactively and copy the flow-step YAML on the Tool Reference.

Examples

Collect blocks in groups of 50

Buffer 50 blocks per handoff for a bulk-friendly downstream tool.

size: 50

Processing notes

  • Remaining buffered blocks are flushed when the input stream closes.

  • Block order within and across batches is preserved.

Limitations

  • Only blocks are batched; all other part types pass through without buffering.

← Back to the Tool Reference