[jira] [Commented] (CAMEL-9207) Make it easy to collate/group N items from a message body with the splitter

2015-10-25 Thread Andrea Cosentino (JIRA)

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

Andrea Cosentino commented on CAMEL-9207:
-

Maybe it would be useful to define some grouping policy strategies..

> 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}
> 
>   ${collate(${body}, 1000)}
>   ...
> 
> {code}
> Now its to come up with a good function name.
> Also the body could be implied, so its just
> {code}
> 
>   ${collate(1000)}
>   ...
> 
> {code}



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


[jira] [Commented] (CAMEL-9207) Make it easy to collate/group N items from a message body with the splitter

2015-10-09 Thread Claus Ibsen (JIRA)

[ 
https://issues.apache.org/jira/browse/CAMEL-9207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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}
> 
>   ${collate(${body}, 1000)}
>   ...
> 
> {code}
> Now its to come up with a good function name.
> Also the body could be implied, so its just
> {code}
> 
>   ${collate(1000)}
>   ...
> 
> {code}



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