| Package | Description |
|---|---|
| com.google.common.hash |
Hash functions and related structures.
|
| Modifier and Type | Method and Description |
|---|---|
static Funnel |
Funnels.byteArrayFunnel()
Returns a funnel that extracts the bytes from a
byte array.
|
static Funnel |
Funnels.integerFunnel()
Returns a funnel for integers.
|
static Funnel |
Funnels.longFunnel()
Returns a funnel for longs.
|
static <E> Funnel |
Funnels.sequentialFunnel(Funnel
Returns a funnel that processes an
Iterable by funneling its elements in iteration order with the specified funnel.
|
static Funnel |
Funnels.stringFunnel(Charset
Returns a funnel that encodes the characters of a
CharSequence with the specified
Charset.
|
static Funnel |
Funnels.unencodedCharsFunnel()
Returns a funnel that extracts the characters from a
CharSequence, a character at a time, without performing any encoding.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> BloomFilter |
BloomFilter.create(Funnel
Creates a
BloomFilter
with the expected number of insertions and a default expected false positive probability of 3%.
|
static <T> BloomFilter |
BloomFilter.create(Funnel
Creates a
BloomFilter
with the expected number of insertions and expected false positive probability.
|
<T> HashCode |
HashFunction.hashObject(T instance, Funnel
Shortcut for
newHasher().putObject(instance, funnel).hash().
|
<T> Hasher |
Hasher.putObject(T instance, Funnel
A simple convenience for
funnel.funnel(object, this).
|
static <T> BloomFilter |
BloomFilter.readFrom(InputStream
Reads a byte stream, which was written by
BloomFilter BloomFilter<T>.
|
static <E> Funnel |
Funnels.sequentialFunnel(Funnel
Returns a funnel that processes an
Iterable by funneling its elements in iteration order with the specified funnel.
|