Skip to content

Operations ​

The Chunking Connector has one operation. It needs no global configuration element.

Available operations ​

OperationStudio nameDescriptionOutput
read-chunkedRead ChunkedReads content as a sequence of chunks, by size or by delimited recordsThe chunks, for foreach or another reader

Syntax ​

read-chunked takes the content to chunk, the message payload by default, and two optional child elements.

chunking-strategy says how the content is cut into chunks: by-size or by-delimiter. Left unset, the content is cut by size in chunks of 1 MB.

streaming-strategy says how the chunks are held: non-repeatable, sliding-window, in-memory or file-store. Left unset, it is non-repeatable: the chunks can be read once, in order.

A flow reads the chunks after the operation, usually with foreach:

xml
<chunking:read-chunked>
    <chunking:chunking-strategy>
        <chunking:by-size chunkSize="65536"/>
    </chunking:chunking-strategy>
</chunking:read-chunked>
<foreach>
    <logger level="INFO" message="#['Chunk $(payload.index): $(payload.length) bytes from byte $(payload.offset)']"/>
</foreach>

Every setting is described under read-chunked.

Site content released under the Apache License 2.0. Each asset carries its own license. RSS · llms.txt