[ 
https://issues.apache.org/jira/browse/CAMEL-9207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14950385#comment-14950385
 ] 

Claus Ibsen commented on CAMEL-9207:
------------------------------------

Some uses splice, split, partition, subList or whatnot, so a good name is maybe 
not so easy. Also it should be on-demand as an iterable, so it can do this off 
memory on demand from a streaming source.

> Make it easy to collate/group N items from a message body with the splitter
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-9207
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9207
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: 2.17.0
>
>
> For example if you have a list / resultset or something, and you want to 
> split that by 1000, then its not super easy to do.
> The tokenizer language has that but it assume a token is in place. But if the 
> body is list / collection, we should be able to group them.
> Maybe a function on simple language?
> {code}
> <split>
>   <simple>${collate(${body}, 1000)}</simple>
>   ...
> </split>
> {code}
> Now its to come up with a good function name.
> Also the body could be implied, so its just
> {code}
> <split>
>   <simple>${collate(1000)}</simple>
>   ...
> </split>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to