Uses of Class
com.google.common.hash.BloomFilter
-
Packages that use BloomFilter Package Description com.google.common.hash Hash functions and related structures. -
-
Uses of BloomFilter in com.google.common.hash
Methods in com.google.common.hash that return BloomFilter Modifier and Type Method Description BloomFilter<T>BloomFilter. copy()Creates a newBloomFilterthat's a copy of this instance.static <T> BloomFilter<T>BloomFilter. create(Funnel<? super T> funnel, int expectedInsertions)Creates aBloomFilterwith 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 aBloomFilterwith the expected number of insertions and expected false positive probability.static <T> BloomFilter<T>BloomFilter. create(Funnel<? super T> funnel, long expectedInsertions)Creates aBloomFilterwith 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 aBloomFilterwith the expected number of insertions and expected false positive probability.static <T> BloomFilter<T>BloomFilter. readFrom(InputStream in, Funnel<? super T> funnel)Reads a byte stream, which was written by writeTo(OutputStream), into aBloomFilter.Methods in com.google.common.hash that return types with arguments of type BloomFilter Modifier and Type Method Description 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.Methods in com.google.common.hash with parameters of type BloomFilter Modifier and Type Method Description booleanBloomFilter. isCompatible(BloomFilter<T> that)Determines whether a given Bloom filter is compatible with this Bloom filter.voidBloomFilter. putAll(BloomFilter<T> that)Combines this Bloom filter with another Bloom filter by performing a bitwise OR of the underlying data.
-