Author |
Message
|
anarki85 |
Posted: Tue Jul 26, 2011 5:15 am Post subject: Hashing Implementation In ESQL |
|
|
Newbie
Joined: 25 Jul 2011 Posts: 8
|
Hi I am looking if there is a way to implement Hashing
in ESQL instead of using some java function for it.
Thanks |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 26, 2011 6:07 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
HashMap and HashTable work very well. Why reinvent the wheel? Are you afraid of Java Compute Nodes? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 26, 2011 6:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Just use the logical message tree and use { } to access an element under it by name.
And remember that {} can only access a single level of the tree.
Code: |
set myHashValue = Environment.MyHash.{myHashKey} |
. |
|
Back to top |
|
 |
anarki85 |
Posted: Tue Jul 26, 2011 6:14 am Post subject: |
|
|
Newbie
Joined: 25 Jul 2011 Posts: 8
|
No I m not, but the boss is hell bent on doing it in ESQL.is there a code avaliable for checksum in ESQL. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jul 26, 2011 6:16 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 26, 2011 6:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
anarki85 wrote: |
No I m not, but the boss is hell bent on doing it in ESQL.is there a code avaliable for checksum in ESQL. |
What do you need a checksum for?
What do you need a checksum *of*?
What does "available in ESQL" mean to you? Just find a checksum algorithm on the internet somewhere and recode it in ESQL - what's the problem? |
|
Back to top |
|
 |
anarki85 |
Posted: Tue Jul 26, 2011 6:54 am Post subject: |
|
|
Newbie
Joined: 25 Jul 2011 Posts: 8
|
@lancelotlinc :hahaha
@mqjef:yeah thats wht i am looking for code for the Checksum in ESQL. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jul 26, 2011 7:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
anarki85 wrote: |
@mqjef:yeah thats wht i am looking for code for the Checksum in ESQL. |
did you try Mr. Google for a checksum algorithm?
Is it that hard to rewrite Java or C or perl or etc. code into ESQL? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 26, 2011 7:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
anarki85 wrote: |
i am looking for code for the Checksum in ESQL. |
You still have not mentioned what you want a checksum of or why. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
anarki85 |
Posted: Tue Jul 26, 2011 7:56 am Post subject: |
|
|
Newbie
Joined: 25 Jul 2011 Posts: 8
|
@mqjeff:was looking if anyone has written it before, than i can use it .
@vitor:want to us eit for duplicate checking of payload. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 26, 2011 8:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
anarki85 wrote: |
@mqjeff:was looking if anyone has written it before, than i can use it . |
According to Mr Google, a lot of people have done this before. Not in ESQL he says, but in a number of different languages you could port.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
anarki85 |
Posted: Wed Jul 27, 2011 1:08 am Post subject: |
|
|
Newbie
Joined: 25 Jul 2011 Posts: 8
|
i am looking for the code in ESQL . |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 27, 2011 3:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
anarki85 wrote: |
i am looking for the code in ESQL . |
And I wish you success in your search.
It occurs to me that in the time you've spent looking for an ESQL version you could have ported one of the other implementations into ESQL twice over, but that's just me. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jul 27, 2011 4:26 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
anarki85 wrote: |
i am looking for the code in ESQL . |
I believe Godot will be along in just a moment. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Jul 27, 2011 5:55 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
mqjeff wrote: |
anarki85 wrote: |
i am looking for the code in ESQL . |
I believe Godot will be along in just a moment. |
I guess that someone got out of the wrong side of the bed this morning. That 'pun' would go right over the head of many here.  _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|