Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
com.google.common.io |
This package contains utility methods and classes for working with Java I/O;
for example input streams, output streams, readers, writers, and files.
|
Class and Description |
---|
AbstractByteHasher
Abstract
Hasher that handles converting primitives to bytes using a scratch ByteBuffer and streams all bytes to a sink to compute the hash. |
AbstractCompositeHashFunction
An abstract composition of multiple hash functions.
|
AbstractHasher
An abstract hasher, implementing
AbstractHasher.putBoolean(boolean) , AbstractHasher.putDouble(double) ,
AbstractHasher.putFloat(float) , AbstractHasher.putUnencodedChars(CharSequence) , and
AbstractHasher.putString(CharSequence, Charset) as prescribed by Hasher . |
AbstractNonStreamingHashFunction.ExposedByteArrayOutputStream |
AbstractStreamingHashFunction
Skeleton implementation of
HashFunction . |
AbstractStreamingHashFunction.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. |
BloomFilter
A Bloom filter for instances of
T . |
BloomFilter.Strategy
A strategy to translate T instances, to
numHashFunctions bit indexes. |
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.
|
BloomFilterStrategies.BitArray |
Funnel
An object which can send data from an object of type
T into a PrimitiveSink . |
Funnels.ByteArrayFunnel |
Funnels.IntegerFunnel |
Funnels.LongFunnel |
Funnels.UnencodedCharsFunnel |
HashCode
An immutable hash code of arbitrary bit length.
|
Hasher
A
PrimitiveSink that can compute a hash code after reading the input. |
HashFunction
A hash function is a collision-averse pure function that maps an arbitrary block of
data to a number called a hash code.
|
Hashing.ChecksumType |
PrimitiveSink
An object which can receive a stream of primitive values.
|
Class and Description |
---|
HashCode
An immutable hash code of arbitrary bit length.
|
HashFunction
A hash function is a collision-averse pure function that maps an arbitrary block of
data to a number called a hash code.
|