I have a multidimensional points which may have keys of the following 3 types INT(4) i.e. Short , or INT(8) or varchar(512).
For this reason I can’t use normal Hilbert curve transformation. I found a very good resource to calculate compact hilbert indices. Here is the link.
http://web.cs.dal.ca/~chamilto/hilbert/index.html
I understand the points and motivation in his paper but I am unable to decipher the code. I can’t figure out which functions to call to calculate Compact Hilbert Indices and the inverse of it.
http://code.google.com/p/uzaygezen/ is an open source Java implementation of the Compact Hilbert Index. Here’s an example corresponding to 3 dimensions with 4, 8 and 512 bytes, as specified in the question: