N - K - public interface Hasher<N,K>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Hasher.BinaryHasher<N,K>
A Hasher implemenation which first convert the Node and Key to
byte arrays before calculating the hash using a HashAlgorithim.
|
static interface |
Hasher.HashAlgorithim
Used to calculate the hash of a binary buffer.
|
static class |
Hasher.MessageDigestFactory
A HashAlgorithim instance which use a MessageDigest
algorithim to compute the hash value.
|
static class |
Hasher.Native
This Hasher implementation works with any type of object by using
the Object.hashCode() method of the Node and Keys objects
to compute the hash.
|
static class |
Hasher.ToStringCodec
Used to convert an object to a byte[] by basically doing:
Object.toString().getBytes("UTF-8")
|
static class |
Hasher.ToStringHasher
This Hasher implementation works with any type of object by using
Object.toString() and uses a checksum to compute the hash of
the key and value.
|
| Modifier and Type | Field and Description |
|---|---|
static Hasher.HashAlgorithim |
CRC32
A HashAlgorithim instance which uses CRC32 checksum
algorithim to compute the hash value.
|
static Hasher.HashAlgorithim |
FNV1A
A HashAlgorithim instance which uses the Fowler/Noll/Vo FNV-1a hash
algorithim to compute the hash value.
|
static long |
INTEGER_MASK |
static Hasher.HashAlgorithim |
JENKINS
A HashAlgorithim instance which uses the Jenkins hash algorithim
to compute the hash value.
|
static Hasher.HashAlgorithim |
MD5 |
static Hasher.HashAlgorithim |
MURMUR
A HashAlgorithim instance which uses the Murmur hash algorithim
to compute the hash value.
|
static final Hasher.HashAlgorithim MD5
static final long INTEGER_MASK
static final Hasher.HashAlgorithim FNV1A
static final Hasher.HashAlgorithim MURMUR
The C version of MurmurHash 2.0 found at that site was ported to Java by Andrzej Bialecki (ab at getopt org).
static final Hasher.HashAlgorithim JENKINS
lookup3.c, by Bob Jenkins, May 2006, Public Domain. You can use this free for any purpose. It's in the public domain. It has no warranty.
static final Hasher.HashAlgorithim CRC32
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.