| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final HashFunction | |
| pack-priv static final HashFunction | |
| private final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | bits()
Implements com. |
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| public int | |
| public Hasher | newHasher()
Implements com. Hasher
instance that is ready to receive data.
|
| public String |
| GOOD_FAST_HASH_128 | back to summary |
|---|---|
| pack-priv static final HashFunction GOOD_FAST_HASH_128 | |
| MURMUR3_128 | back to summary |
|---|---|
| pack-priv static final HashFunction MURMUR3_128 | |
| seed | back to summary |
|---|---|
| private final int seed | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Murmur3_128HashFunction | back to summary |
|---|---|
| pack-priv Murmur3_128HashFunction(int seed) | |
| bits | back to summary |
|---|---|
| public int bits() Implements com. Doc from com. Returns the number of bits (a multiple of 32) that each hash code produced by this hash function has.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| newHasher | back to summary |
|---|---|
| public Hasher newHasher() Implements com. Doc from com. Begins a new hash code computation by returning an initialized, stateful
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private static final long | |
| private static final int | |
| private long | |
| private long | |
| private int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static long | |
| protected HashCode | makeHash()
Implements abstract com. |
| private static long | |
| private static long | |
| protected void | process(ByteBuffer bb)
Implements abstract com. chunk bytes).
|
| protected void | processRemaining(ByteBuffer bb)
Overrides com. |
| C1 | back to summary |
|---|---|
| private static final long C1 | |
| C2 | back to summary |
|---|---|
| private static final long C2 | |
| CHUNK_SIZE | back to summary |
|---|---|
| private static final int CHUNK_SIZE | |
| h1 | back to summary |
|---|---|
| private long h1 | |
| h2 | back to summary |
|---|---|
| private long h2 | |
| length | back to summary |
|---|---|
| private int length | |
| Murmur3_128Hasher | back to summary |
|---|---|
| pack-priv Murmur3_128Hasher(int seed) | |
| bmix64 | back to summary |
|---|---|
| private void bmix64(long k1, long k2) | |
| fmix64 | back to summary |
|---|---|
| private static long fmix64(long k) | |
| makeHash | back to summary |
|---|---|
| protected HashCode makeHash() Implements abstract com. Doc from com. Computes a hash code based on the data that have been provided to this hasher. This is called
after all chunks are handled with
| |
| mixK1 | back to summary |
|---|---|
| private static long mixK1(long k1) | |
| mixK2 | back to summary |
|---|---|
| private static long mixK2(long k2) | |
| process | back to summary |
|---|---|
| protected void process(ByteBuffer bb) Implements abstract com. Doc from com. Processes the available bytes of the buffer (at most
| |
| processRemaining | back to summary |
|---|---|
| protected void processRemaining(ByteBuffer bb) Overrides com. Doc from com. This is invoked for the last bytes of the input, which are not enough to fill a whole chunk.
The passed This implementation simply pads with zeros and delegates to
| |