Uses of Interface
com.google.common.hash.Funnel
Packages that use Funnel
-
Uses of Funnel in com.google.common.hash
Methods in com.google.common.hash that return FunnelModifier and TypeMethodDescriptionstatic Funnel<byte[]> Funnels.byteArrayFunnel()Returns a funnel that extracts the bytes from abytearray.Funnels.integerFunnel()Returns a funnel for integers.Funnels.longFunnel()Returns a funnel for longs.Funnels.sequentialFunnel(Funnel<E> elementFunnel) Returns a funnel that processes anIterableby 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 aCharSequencewith 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 extends @Nullable Object>
BloomFilter<T> Creates aBloomFilterwith the expected number of insertions and a default expected false positive probability of 3%.static <T extends @Nullable Object>
BloomFilter<T> Creates aBloomFilterwith the expected number of insertions and expected false positive probability.static <T extends @Nullable Object>
BloomFilter<T> Creates aBloomFilterwith the expected number of insertions and a default expected false positive probability of 3%.static <T extends @Nullable Object>
BloomFilter<T> Creates aBloomFilterwith the expected number of insertions and expected false positive probability.HashFunction.hashObject(T instance, Funnel<? super T> funnel) Shortcut fornewHasher().putObject(instance, funnel).hash().A simple convenience forfunnel.funnel(object, this).static <T extends @Nullable Object>
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 anIterableby funneling its elements in iteration order with the specified funnel.static <T extends @Nullable Object>
Collector<T, ?, BloomFilter<T>> BloomFilter.toBloomFilter(Funnel<? super T> funnel, long expectedInsertions) Returns aCollectorexpecting the specified number of insertions, and yielding aBloomFilterwith false positive probability 3%.static <T extends @Nullable Object>
Collector<T, ?, BloomFilter<T>> BloomFilter.toBloomFilter(Funnel<? super T> funnel, long expectedInsertions, double fpp) Returns aCollectorexpecting the specified number of insertions, and yielding aBloomFilterwith the specified expected false positive probability.