Uses of Interface
com.google.common.hash.Funnel
-
Packages that use Funnel Package Description com.google.common.hash Hash functions and related structures. -
-
Uses of Funnel in com.google.common.hash
Methods in com.google.common.hash that return Funnel Modifier and Type Method Description static Funnel<byte[]>
Funnels. byteArrayFunnel()
Returns a funnel that extracts the bytes from abyte
array.static Funnel<java.lang.Integer>
Funnels. integerFunnel()
Returns a funnel for integers.static Funnel<java.lang.Long>
Funnels. longFunnel()
Returns a funnel for longs.static <E> Funnel<java.lang.Iterable<? extends E>>
Funnels. sequentialFunnel(Funnel<E> elementFunnel)
Returns a funnel that processes anIterable
by funneling its elements in iteration order with the specified funnel.static Funnel<java.lang.CharSequence>
Funnels. stringFunnel()
Deprecated.UseFunnels.unencodedCharsFunnel()
instead.static Funnel<java.lang.CharSequence>
Funnels. stringFunnel(java.nio.charset.Charset charset)
Returns a funnel that encodes the characters of aCharSequence
with the specifiedCharset
.static Funnel<java.lang.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 Funnel Modifier and Type Method Description static <T> BloomFilter<T>
BloomFilter. create(Funnel<? super T> funnel, int expectedInsertions)
Creates aBloomFilter
with the expected number of insertions and a default expected false positive probability of 3%.static <T> BloomFilter<T>
BloomFilter. create(Funnel<? super T> funnel, int expectedInsertions, double fpp)
Creates aBloomFilter
with the expected number of insertions and expected false positive probability.static <T> BloomFilter<T>
BloomFilter. create(Funnel<? super T> funnel, long expectedInsertions)
Creates aBloomFilter
with the expected number of insertions and a default expected false positive probability of 3%.static <T> BloomFilter<T>
BloomFilter. create(Funnel<? super T> funnel, long expectedInsertions, double fpp)
Creates aBloomFilter
with the expected number of insertions and expected false positive probability.<T> HashCode
HashFunction. hashObject(T instance, Funnel<? super T> funnel)
Shortcut fornewHasher().putObject(instance, funnel).hash()
.<T> Hasher
Hasher. putObject(T instance, Funnel<? super T> funnel)
A simple convenience forfunnel.funnel(object, this)
.static <T> BloomFilter<T>
BloomFilter. readFrom(java.io.InputStream in, Funnel<T> funnel)
Reads a byte stream, which was written by BloomFilter.writeTo(OutputStream), into aBloomFilter<T>
.static <E> Funnel<java.lang.Iterable<? extends E>>
Funnels. sequentialFunnel(Funnel<E> elementFunnel)
Returns a funnel that processes anIterable
by funneling its elements in iteration order with the specified funnel.
-