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 enumprivate static enumprivate static enumprivate static classprivate static classprivate static enumFields in com.google.common.hash declared as FunnelModifier and TypeFieldDescriptionFunnels.SequentialFunnel.elementFunnelBloomFilter.funnelThe funnel to translate Ts to bytesBloomFilter.SerialForm.funnelMethods 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> BloomFilter<T> Creates aBloomFilterwith the expected number of insertions and a default expected false positive probability of 3%.static <T> BloomFilter<T> Creates aBloomFilterwith the expected number of insertions and expected false positive probability.static <T> BloomFilter<T> Creates aBloomFilterwith the expected number of insertions and a default expected false positive probability of 3%.static <T> BloomFilter<T> Creates aBloomFilterwith 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> HashCodeAbstractHashFunction.hashObject(T instance, Funnel<? super T> funnel) <T> HashCodeHashFunction.hashObject(T instance, Funnel<? super T> funnel) Shortcut fornewHasher().putObject(instance, funnel).hash().<T> booleanBloomFilter.Strategy.mightContain(T object, Funnel<? super T> funnel, int numHashFunctions, BloomFilterStrategies.LockFreeBitArray bits) QueriesnumHashFunctionsbits of the given bit array, by hashing a user element; returnstrueif and only if all selected bits are set.<T> booleanBloomFilter.Strategy.put(T object, Funnel<? super T> funnel, int numHashFunctions, BloomFilterStrategies.LockFreeBitArray bits) SetsnumHashFunctionsbits of the given bit array, by hashing a user element.<T> Hasher<T> HasherA 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 anIterableby 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 aCollectorexpecting the specified number of insertions, and yielding aBloomFilterwith false positive probability 3%.static <T> 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.Constructors in com.google.common.hash with parameters of type FunnelModifierConstructorDescriptionprivateBloomFilter(BloomFilterStrategies.LockFreeBitArray bits, int numHashFunctions, Funnel<? super T> funnel, BloomFilter.Strategy strategy) Creates a BloomFilter.(package private)SequentialFunnel(Funnel<E> elementFunnel)