C# Class CqlSharp.Network.Partition.MurmurHash

This is a very fast, non-cryptographic hash suitable for general hash-based lookup. See http://murmurhash.googlepages.com/ for more details. hash3_x64_128() is MurmurHash 3.0.
Copied from https://github.com/datastax/csharp-driver/blob/master/Cassandra/MurmurHash.cs
Datei anzeigen Open project: reuzel/CqlSharp Class Usage Examples

Public Methods

Method Description
Hash3_X64_128 ( byte key, int offset, int length, long seed ) : long[]

Private Methods

Method Description
Fmix ( long k ) : long
GetBlock ( byte key, int offset, int index ) : long
Rotl64 ( long v, int n ) : long

Method Details

Hash3_X64_128() public static method

public static Hash3_X64_128 ( byte key, int offset, int length, long seed ) : long[]
key byte
offset int
length int
seed long
return long[]