Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
Modifier and Type | Method and Description |
---|---|
BloomFilter<T> |
BloomFilter.copy()
Creates a new
BloomFilter that's a copy of this instance. |
static <T> BloomFilter<T> |
BloomFilter.create(Funnel<? super T> funnel,
int expectedInsertions)
Creates a
BloomFilter 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 a
BloomFilter with the expected number of insertions and expected false
positive probability. |
static <T> BloomFilter<T> |
BloomFilter.create(Funnel<? super T> funnel,
long expectedInsertions)
Creates a
BloomFilter 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 a
BloomFilter with 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 a
BloomFilter . |
Modifier and Type | Method and Description |
---|---|
static <T> Collector<T,?,BloomFilter<T>> |
BloomFilter.toBloomFilter(Funnel<? super T> funnel,
long expectedInsertions)
Returns a
Collector expecting the specified number of insertions, and yielding a BloomFilter with false positive probability 3%. |
static <T> Collector<T,?,BloomFilter<T>> |
BloomFilter.toBloomFilter(Funnel<? super T> funnel,
long expectedInsertions,
double fpp)
Returns a
Collector expecting the specified number of insertions, and yielding a BloomFilter with the specified expected false positive probability. |
Modifier and Type | Method and Description |
---|---|
boolean |
BloomFilter.isCompatible(BloomFilter<T> that)
Determines whether a given Bloom filter is compatible with this Bloom filter.
|
void |
BloomFilter.putAll(BloomFilter<T> that)
Combines this Bloom filter with another Bloom filter by performing a bitwise OR of the
underlying data.
|
Copyright © 2010–2017. All rights reserved.