You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/02/20 12:52:00 UTC
[jira] Created: (CAMEL-1363) Sort DSL - To be able to sort e.g. the
body use some comparator
Sort DSL - To be able to sort e.g. the body use some comparator
---------------------------------------------------------------
Key: CAMEL-1363
URL: https://issues.apache.org/activemq/browse/CAMEL-1363
Project: Apache Camel
Issue Type: New Feature
Components: camel-core
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.0.0
Today there is no DSL support to be able to sort the body of a given message.
Lets imagine you read some .txt file with lines of text, and you want that sorted,
Today you need to do that manually.
{code}
from("file://inbox").sort(body().tokenize("\n")).to("bean:processLines");
{code}
By deault it will sort the body and use a default comparator that sorts by to string representation.
The body will be converted into a List to allow the JDK sorter to be used.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1363) Sort DSL - To be able to sort e.g.
the body use some comparator
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1363.
--------------------------------
Resolution: Fixed
Committed revision 746225.
> Sort DSL - To be able to sort e.g. the body use some comparator
> ---------------------------------------------------------------
>
> Key: CAMEL-1363
> URL: https://issues.apache.org/activemq/browse/CAMEL-1363
> Project: Apache Camel
> Issue Type: New Feature
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.0.0
>
>
> Today there is no DSL support to be able to sort the body of a given message.
> Lets imagine you read some .txt file with lines of text, and you want that sorted,
> Today you need to do that manually.
> {code}
> from("file://inbox").sort(body().tokenize("\n")).to("bean:processLines");
> {code}
> By deault it will sort the body and use a default comparator that sorts by to string representation.
> The body will be converted into a List to allow the JDK sorter to be used.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.