public class HoodieDynamicBoundedBloomFilter extends Object implements BloomFilter
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_CODE_PREFIX |
| Constructor and Description |
|---|
HoodieDynamicBoundedBloomFilter(ByteBuffer byteBuffer)
Creates
HoodieDynamicBoundedBloomFilter from the given ByteBuffer. |
HoodieDynamicBoundedBloomFilter(String serString)
Generate
HoodieDynamicBoundedBloomFilter from the given serString serialized string. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] keyBytes)
Add a key's bytes, representing UTF8-encoded string, to the
BloomFilter. |
void |
add(String key)
Add a key represented by a
String to the BloomFilter. |
BloomFilterTypeCode |
getBloomFilterTypeCode() |
boolean |
mightContain(String key)
Tests for key membership.
|
String |
serializeToString()
Serialize the bloom filter as a string.
|
public static final String TYPE_CODE_PREFIX
public HoodieDynamicBoundedBloomFilter(String serString)
HoodieDynamicBoundedBloomFilter from the given serString serialized string.serString - the serialized string which represents the HoodieDynamicBoundedBloomFilterpublic HoodieDynamicBoundedBloomFilter(ByteBuffer byteBuffer)
HoodieDynamicBoundedBloomFilter from the given ByteBuffer.byteBuffer - ByteBuffer containing the serialized bloom filter.public void add(String key)
BloomFilterString to the BloomFilter.add in interface BloomFilterkey - the key to the added to the BloomFilterpublic void add(byte[] keyBytes)
BloomFilterBloomFilter.add in interface BloomFilterkeyBytes - the key bytes to the added to the BloomFilterpublic boolean mightContain(String key)
BloomFiltermightContain in interface BloomFilterkey - the key to be checked for membershiptrue if key may be found, false if key is not found for sure.public String serializeToString()
BloomFilterserializeToString in interface BloomFilterpublic BloomFilterTypeCode getBloomFilterTypeCode()
getBloomFilterTypeCode in interface BloomFilterCopyright © 2024 The Apache Software Foundation. All rights reserved.