Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating consistant integer from a string

807607Jan 8 2007 — edited Jan 9 2007
I am in lookout for the mechanism to create unique integer from string. I have list of strings representing specific piece of information. But client will be able to query the value by using an integer value. (Client can not use string to query). So I need to convert all these strings (Max size 256 bytes) to unique integer number (4 byte) and give it to client so that they can use it to querry. Every time I reboot the system the integer value returned for a string should be same(consistent).
I have looked in to the hasing mechnism ...nothig concrete so far. please send me the mechnism that can be used to implement this.
-thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2007
Added on Jan 8 2007
23 comments
1,161 views