Is there any Java library that provides an implementation (or several) of a Locality Preserving Hash Function for Strings?
Asked
Active
Viewed 687 times
5
-
1For what Java type? E.g. `Integer.hashCode()` already has this property. How do you define distance between Strings or arbitrary Java objects? – Tomasz Nurkiewicz Aug 24 '11 at 07:53
-
@tomasz distance betweens string can be obtained by converting their characters to ascii – Suraj Chandran Aug 24 '11 at 08:02
-
At least I know two possible distances - Levenshtein distance and lexicographical distance. – kan Aug 24 '11 at 08:09
-
I didn't specify but I am looking for a locality preserving hash function for Strings – Laurent Aug 24 '11 at 17:19
1 Answers
-2
You probably can use HashcodeBuilder from Jakarta: http://commons.apache.org/lang/api-2.6/org/apache/commons/lang/builder/HashCodeBuilder.html
I hope this is what you mean.

AlexR
- 114,158
- 16
- 130
- 208