Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
Modifier and Type | Method and Description |
---|---|
static Funnel<byte[]> |
Funnels.byteArrayFunnel()
Returns a funnel that extracts the bytes from a
byte array. |
static Funnel<Integer> |
Funnels.integerFunnel()
Returns a funnel for integers.
|
static Funnel<Long> |
Funnels.longFunnel()
Returns a funnel for longs.
|
static Funnel<CharSequence> |
Funnels.stringFunnel()
Returns a funnel that extracts the characters from a
CharSequence . |
Modifier and Type | Method and Description |
---|---|
static <T> BloomFilter<T> |
BloomFilter.create(Funnel<T> funnel,
int expectedInsertions)
Creates a
Builder of a BloomFilter , with the expected number
of insertions, and a default expected false positive probability of 3%. |
static <T> BloomFilter<T> |
BloomFilter.create(Funnel<T> funnel,
int expectedInsertions,
double fpp)
Creates a
Builder of a BloomFilter , with the expected number
of insertions and expected false positive probability. |
<T> HashCode |
HashFunction.hashObject(T instance,
Funnel<? super T> funnel)
Shortcut for
newHasher().putObject(instance, funnel).hash() . |
<T> Hasher |
Hasher.putObject(T instance,
Funnel<? super T> funnel)
A simple convenience for
funnel.funnel(object, this) . |
Copyright © 2010-2013. All Rights Reserved.