Murmur3 Hash Algorithm Used in Kassandra

I am trying to reproduce the Murmur3 hash in Kassandra. Does anyone know how to get the actual hash values ​​used in string keys? I just need a pair of hash values ​​from my data to verify the hash implementation is correct.

Alex

+4
source share
1 answer

Ask Cassandra! Insert some data into the table. Subsequently, you can use the token function in the select query to get the token values ​​used. For instance:

select token(id), id from myTable; 

The cumulative key of the section is serialized as an n-fold array of bytes (which is always added with a brief indication of its length) containing the serialized value of your key element and a closure of 0. I do not understand what these closing zeros are for. Something related to SuperColumns ...

+4
source

Source: https://habr.com/ru/post/1480908/


All Articles