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.Object
public 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.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2013 The Apache Software Foundation