public interface BloomFilter
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] key)
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.
|
void add(String key)
String to the BloomFilter.key - the key to the added to the BloomFiltervoid add(byte[] key)
BloomFilter.key - the key bytes to the added to the BloomFilterboolean mightContain(String key)
key - the key to be checked for membershiptrue if key may be found, false if key is not found for sure.String serializeToString()
BloomFilterTypeCode getBloomFilterTypeCode()
Copyright © 2024 The Apache Software Foundation. All rights reserved.