| Modifier and Type | Field and Description |
|---|---|
static LegacyBloomFilterSerializer |
serializer |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.nio.ByteBuffer key) |
static LegacyBloomFilter |
alwaysMatchingBloomFilter() |
void |
clear() |
void |
close() |
java.util.BitSet |
getBitSet() |
static LegacyBloomFilter |
getFilter(long numElements,
double maxFalsePosProbability) |
static LegacyBloomFilter |
getFilter(long numElements,
int targetBucketsPerElem) |
int[] |
getHashBuckets(java.nio.ByteBuffer key) |
boolean |
isPresent(java.nio.ByteBuffer key) |
java.lang.String |
toString() |
public static final LegacyBloomFilterSerializer serializer
public static LegacyBloomFilter getFilter(long numElements, int targetBucketsPerElem)
public static LegacyBloomFilter getFilter(long numElements, double maxFalsePosProbability)
public boolean isPresent(java.nio.ByteBuffer key)
public java.lang.String toString()
toString in class java.lang.Objectpublic static LegacyBloomFilter alwaysMatchingBloomFilter()
public int[] getHashBuckets(java.nio.ByteBuffer key)
public java.util.BitSet getBitSet()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2014 The Apache Software Foundation