Uses of Interface
com.google.common.hash.Funnel
Packages that use Funnel
-
Uses of Funnel in com.google.common.hash
Classes in com.google.common.hash that implement FunnelModifier and TypeClassDescriptionprivate static enum
private static enum
private static enum
private static class
private static class
private static enum
Fields in com.google.common.hash declared as FunnelModifier and TypeFieldDescriptionFunnels.SequentialFunnel.elementFunnel
BloomFilter.funnel
The funnel to translate Ts to bytesBloomFilter.SerialForm.funnel
Methods in com.google.common.hash that return FunnelModifier and TypeMethodDescriptionstatic Funnel
<byte[]> Funnels.byteArrayFunnel()
Returns a funnel that extracts the bytes from abyte
array.Funnels.integerFunnel()
Returns a funnel for integers.Funnels.longFunnel()
Returns a funnel for longs.Funnels.sequentialFunnel
(Funnel<E> elementFunnel) Returns a funnel that processes anIterable
by funneling its elements in iteration order with the specified funnel.static Funnel
<CharSequence> Funnels.stringFunnel
(Charset charset) Returns a funnel that encodes the characters of aCharSequence
with the specifiedCharset
.static Funnel
<CharSequence> Funnels.unencodedCharsFunnel()
Returns a funnel that extracts the characters from aCharSequence
, a character at a time, without performing any encoding.Methods in com.google.common.hash with parameters of type FunnelModifier and TypeMethodDescriptionstatic <T> BloomFilter
<T> Creates aBloomFilter
with the expected number of insertions and a default expected false positive probability of 3%.static <T> BloomFilter
<T> Creates aBloomFilter
with the expected number of insertions and expected false positive probability.static <T> BloomFilter
<T> Creates aBloomFilter
with the expected number of insertions and a default expected false positive probability of 3%.static <T> BloomFilter
<T> Creates aBloomFilter
with the expected number of insertions and expected false positive probability.(package private) static <T> BloomFilter
<T> BloomFilter.create
(Funnel<? super T> funnel, long expectedInsertions, double fpp, BloomFilter.Strategy strategy) <T> HashCode
AbstractHashFunction.hashObject
(T instance, Funnel<? super T> funnel) <T> HashCode
HashFunction.hashObject
(T instance, Funnel<? super T> funnel) Shortcut fornewHasher().putObject(instance, funnel).hash()
.<T> boolean
BloomFilter.Strategy.mightContain
(T object, Funnel<? super T> funnel, int numHashFunctions, BloomFilterStrategies.LockFreeBitArray bits) QueriesnumHashFunctions
bits of the given bit array, by hashing a user element; returnstrue
if and only if all selected bits are set.<T> boolean
BloomFilter.Strategy.put
(T object, Funnel<? super T> funnel, int numHashFunctions, BloomFilterStrategies.LockFreeBitArray bits) SetsnumHashFunctions
bits of the given bit array, by hashing a user element.<T> Hasher
<T> Hasher
A simple convenience forfunnel.funnel(object, this)
.static <T> BloomFilter
<T> BloomFilter.readFrom
(InputStream in, Funnel<? super T> funnel) Reads a byte stream, which was written by BloomFilter.writeTo(OutputStream), into aBloomFilter
.Funnels.sequentialFunnel
(Funnel<E> elementFunnel) Returns a funnel that processes anIterable
by funneling its elements in iteration order with the specified funnel.static <T> Collector
<T, ?, BloomFilter<T>> BloomFilter.toBloomFilter
(Funnel<? super T> funnel, long expectedInsertions) Returns aCollector
expecting the specified number of insertions, and yielding aBloomFilter
with false positive probability 3%.static <T> Collector
<T, ?, BloomFilter<T>> BloomFilter.toBloomFilter
(Funnel<? super T> funnel, long expectedInsertions, double fpp) Returns aCollector
expecting the specified number of insertions, and yielding aBloomFilter
with the specified expected false positive probability.Constructors in com.google.common.hash with parameters of type FunnelModifierConstructorDescriptionprivate
BloomFilter
(BloomFilterStrategies.LockFreeBitArray bits, int numHashFunctions, Funnel<? super T> funnel, BloomFilter.Strategy strategy) Creates a BloomFilter.(package private)
SequentialFunnel
(Funnel<E> elementFunnel)