public class BloomFilter extends Object
| Constructor and Description |
|---|
BloomFilter(int expectedSize,
double falsePositiveRate,
int hashCount)
构造布隆过滤器
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(String str)
向布隆过滤器中添加元素
|
boolean |
contains(String str)
判断元素是否可能存在于布隆过滤器中
|
Copyright © 2025. All rights reserved.