public class BloomFilterFactory extends Object
BloomFilter.| Constructor and Description |
|---|
BloomFilterFactory() |
| Modifier and Type | Method and Description |
|---|---|
static BloomFilter |
createBloomFilter(int numEntries,
double errorRate,
int maxNumberOfEntries,
String bloomFilterTypeCode)
Creates a new
BloomFilter with the given args. |
static BloomFilter |
fromByteBuffer(ByteBuffer byteBuffer,
String bloomFilterTypeCode)
Generates
BloomFilter from a ByteBuffer. |
static BloomFilter |
fromString(String serString,
String bloomFilterTypeCode)
Generate
BloomFilter from serialized String. |
public static BloomFilter createBloomFilter(int numEntries, double errorRate, int maxNumberOfEntries, String bloomFilterTypeCode)
BloomFilter with the given args.numEntries - total number of entrieserrorRate - max allowed error ratebloomFilterTypeCode - bloom filter type codeBloomFilter thus createdpublic static BloomFilter fromString(String serString, String bloomFilterTypeCode)
BloomFilter from serialized String.serString - the serialized string of the BloomFilterbloomFilterTypeCode - bloom filter type code as stringBloomFilter thus generated from the passed in serialized stringpublic static BloomFilter fromByteBuffer(ByteBuffer byteBuffer, String bloomFilterTypeCode)
BloomFilter from a ByteBuffer.byteBuffer - ByteBuffer containing the serialized bloom filter.bloomFilterTypeCode - bloom filter type code as string.BloomFilter thus generated from the passed in ByteBuffer.Copyright © 2024 The Apache Software Foundation. All rights reserved.