Skip to content

tnm/murmurhash-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

murmurhash-java

This is an implementation by Viliam Holub of the fast non-cryptographic murmurhash2 algorithm.

It is written in Java and is implemented in both 32 and 64-bit versions.

If you want the latest in the world of murmur, check out Guava's Hashing class, which has 32 and 128 bit implementations of murmur3.

building

Build a package with maven:

mvn package

Run the tests:

mvn test

public api

public final class MurmurHash {
    public static int  hash32(final byte[] data, int length);
    public static long hash64(final byte[] data, int length);
    public static int  hash32(final byte[] data, int length, int seed);
    public static long hash64(final byte[] data, int length, int seed);
    public static int  hash32(final String text);
    public static long hash64(final String text);
    public static int  hash32(final String text, int from, int length);
    public static long hash64(final String text, int from, int length);
}

author

This code was released by Viliam into the public domain. More information is here.

About

32 and 64 bit implementations of murmurhash2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages