Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractByteHasher
Abstract
Hasher that handles converting primitives to bytes using a scratch ByteBuffer and streams all bytes to a sink to compute the hash. |
(package private) class |
AbstractCompositeHashFunction
An abstract composition of multiple hash functions.
|
(package private) class |
AbstractHasher
An abstract implementation of
Hasher , which only requires subtypes to implement Hasher.putByte(byte) . |
(package private) class |
AbstractHashFunction
Skeleton implementation of
HashFunction in terms of HashFunction.newHasher() . |
(package private) class |
AbstractNonStreamingHashFunction
Skeleton implementation of
HashFunction , appropriate for non-streaming algorithms. |
(package private) class |
AbstractStreamingHasher
A convenience base class for implementors of
Hasher ; handles accumulating data until an
entire "chunk" (of implementation-dependent length) is ready to be hashed. |
class |
BloomFilter<T>
A Bloom filter for instances of
T . |
(package private) class |
BloomFilterStrategies
Collections of strategies of generating the k * log(M) bits required for an element to be mapped
to a BloomFilter of M bits and k hash functions.
|
(package private) class |
ChecksumHashFunction
HashFunction adapter for Checksum instances. |
(package private) class |
Crc32cHashFunction
This class generates a CRC32C checksum, defined by RFC 3720, Section 12.1.
|
(package private) class |
FarmHashFingerprint64
Implementation of FarmHash Fingerprint64, an open-source fingerprinting algorithm for strings.
|
(package private) class |
Fingerprint2011
Implementation of Geoff Pike's fingerprint2011 hash function.
|
interface |
Funnel<T>
An object which can send data from an object of type
T into a PrimitiveSink . |
class |
Funnels
Funnels for common types.
|
class |
HashCode
An immutable hash code of arbitrary bit length.
|
interface |
Hasher
A
PrimitiveSink that can compute a hash code after reading the input. |
interface |
HashFunction
A hash function is a collision-averse pure function that maps an arbitrary block of data to a
number called a hash code.
|
class |
Hashing
Static methods to obtain
HashFunction instances, and other static hashing-related
utilities. |
class |
HashingInputStream
An
InputStream that maintains a hash of the data read from it. |
class |
HashingOutputStream
An
OutputStream that maintains a hash of the data written to it. |
(package private) interface |
ImmutableSupplier<T>
Explicitly named subinterface of
Supplier that can be marked @Immutable . |
(package private) class |
Java8Compatibility
Wrappers around
Buffer methods that are covariantly overridden in Java 9+. |
(package private) class |
LittleEndianByteArray
Utility functions for loading and storing values from a byte array.
|
(package private) interface |
LongAddable
Abstract interface for objects that can concurrently add longs.
|
(package private) class |
LongAddables
Source of
LongAddable objects that deals with GWT, Unsafe, and all that. |
(package private) class |
LongAdder
One or more variables that together maintain an initially zero
long sum. |
(package private) class |
MacHashFunction
HashFunction adapter for Mac instances. |
(package private) class |
MessageDigestHashFunction
HashFunction adapter for MessageDigest instances. |
(package private) class |
Murmur3_128HashFunction
See MurmurHash3_x64_128 in the
C++ implementation.
|
(package private) class |
Murmur3_32HashFunction
See MurmurHash3_x86_32 in the C++
implementation.
|
interface |
PrimitiveSink
An object which can receive a stream of primitive values.
|
(package private) class |
SipHashFunction
HashFunction implementation of SipHash-c-d. |
(package private) class |
Striped64
A package-local class holding common representation and mechanics for classes supporting dynamic
striping on 64bit values.
|