EPL order by for string types and i18n

View: New views
3 Messages — Rating Filter:   Alert me  

EPL order by for string types and i18n

by Anshul Jaiswal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Folks,

I was curious, if esper uses java.text.Collator to sort string data when an order by clause is specified on an attribute that is of type string.

Going through the code, it appears that it uses String.compareTo() instead of Collator to compare strings(MultiKeyComparator), but thats just from peeking around, don't know if thats true. But if it is, any plans for making it use Collator for string data types?

Just meaning to be able to characterize esper's behavior...

Thanks!
Anshul

Parent Message unknown Re: EPL order by for string types and i18n

by Thomas Bernhardt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Anshul,

yes Esper is not using Collator, i.e. not doing locale-sensitive string compares, at this time. Feel free to create a JIRA if you think this is a feature worth to add, and we can help point you to the places in the code to make the appropriate changes (dev mailing list).

Best regards,
Tom
----- Original Message ----
From: Anshul Jaiswal <anshul@...>
To: user@...
Sent: Friday, August 22, 2008 5:46:44 PM
Subject: [esper-user] EPL order by for string types and i18n

Folks,

I was curious, if esper uses java.text.Collator to sort string data when an order by clause is specified on an attribute that is of type string.

Going through the code, it appears that it uses String.compareTo() instead of Collator to compare strings(MultiKeyComparator), but thats just from peeking around, don't know if thats true. But if it is, any plans for making it use Collator for string data types?

Just meaning to be able to characterize esper's behavior...

Thanks!
Anshul


Re: EPL order by for string types and i18n

by Anshul Jaiswal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your reply, Tom.

I created a JIRA for this.
http://jira.codehaus.org/browse/ESPER-278

At this time, this particular feature is not critical for us, but if it does become important in the future, I'll contact you folks on the dev mailing list.

Cheers!
Anshul

On Sat, Aug 23, 2008 at 3:29 AM, Thomas Bernhardt <bernhardttom@...> wrote:
Hi Anshul,

yes Esper is not using Collator, i.e. not doing locale-sensitive string compares, at this time. Feel free to create a JIRA if you think this is a feature worth to add, and we can help point you to the places in the code to make the appropriate changes (dev mailing list).

Best regards,
Tom

----- Original Message ----
From: Anshul Jaiswal <anshul@...>
To: user@...
Sent: Friday, August 22, 2008 5:46:44 PM
Subject: [esper-user] EPL order by for string types and i18n

Folks,

I was curious, if esper uses java.text.Collator to sort string data when an order by clause is specified on an attribute that is of type string.

Going through the code, it appears that it uses String.compareTo() instead of Collator to compare strings(MultiKeyComparator), but thats just from peeking around, don't know if thats true. But if it is, any plans for making it use Collator for string data types?

Just meaning to be able to characterize esper's behavior...

Thanks!
Anshul


LightInTheBox - Buy quality products at wholesale price!