Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
Modifier and Type | Method and Description |
---|---|
boolean |
BloomFilter.apply(T input)
Deprecated.
Provided only to satisfy the
Predicate interface; use BloomFilter.mightContain(T)
instead. |
void |
Funnel.funnel(T from,
PrimitiveSink into)
Sends a stream of data from the
from object into the sink into . |
<T> HashCode |
AbstractHashFunction.hashObject(T instance,
Funnel<? super T> funnel) |
<T> HashCode |
HashFunction.hashObject(T instance,
Funnel<? super T> funnel)
Shortcut for
newHasher().putObject(instance, funnel).hash() . |
boolean |
BloomFilter.mightContain(T object)
Returns
true if the element might have been put in this Bloom filter, false if this is definitely not the case. |
<T> boolean |
BloomFilter.Strategy.mightContain(T object,
Funnel<? super T> funnel,
int numHashFunctions,
BloomFilterStrategies.LockFreeBitArray bits)
Queries
numHashFunctions bits of the given bit array, by hashing a user element;
returns true if and only if all selected bits are set. |
boolean |
BloomFilter.put(T object)
Puts an element into this
BloomFilter . |
<T> boolean |
BloomFilter.Strategy.put(T object,
Funnel<? super T> funnel,
int numHashFunctions,
BloomFilterStrategies.LockFreeBitArray bits)
Sets
numHashFunctions bits of the given bit array, by hashing a user element. |
<T> Hasher |
AbstractHasher.putObject(T instance,
Funnel<? super T> funnel) |
<T> Hasher |
Hasher.putObject(T instance,
Funnel<? super T> funnel)
A simple convenience for
funnel.funnel(object, this) . |