java - 在 Java 中创建一个大的(例如 450MB+)bloomfilter
问题描述
我有一个在 Java 上运行的应用程序,我需要创建一个大小为 450MB+ 的bloomfilter。参考需求:https : //hur.st/bloomfilter/?n=400M&p=0.01&m=&k= 支持添加4亿+条记录,误报概率为0.01。
我正在使用这个布隆过滤器库https://github.com/MagnusS/Java-BloomFilter,但似乎他们正在使用它
int
来访问 bitSetSize,并且有多个类型转换为整数。因此,无论我不断获得的最大大小是 INT_MAX(即 2147483647 位或 268MB)。我还在查看另一个库https://github.com/Baqend/Orestes-Bloomfilter。但是他们的源代码显示使用整数而不是 Long 来表示位大小。
是否有标准库支持创建 450MB+ 的bloomfilter?还是我会分叉这些库来重构整数类型转换?欢迎任何建议。谢谢。
解决方案
推荐阅读
- python - 将多个变量设置为 false 值的 Pythonic 方法
- ruby-on-rails - 用于狂欢的 Rails 装饰控制器
- ruby-on-rails - 根据变量名动态调用方法
- apache - 如何更改tomcat服务器的主机名
- pdf - 如何使用 tcpdf 在 PDF 上正确打印 µ 符号?
- sql - 如何在不重复行的情况下附加来自不同表的具有匹配 ID 的数据?
- android - Ktlint 自定义记者
- plugins - FetchXML vs 查询表达式 vs LINQ 查询:我应该在这里使用什么?
- ios - iOS 位置事件未在模拟器中触发
- node.js - Nodejs REST API逐块发送大JSON块