predicate - Aerospike:如何对二级索引执行 IN 查询
问题描述
如何在二级索引的 aerospike 中执行(类似 sql 的)IN 查询。我们需要一个UDF吗?
像这样:Select * from ns.set where si_bin in (1,2,3)
java aerospike 客户端有什么可用的吗?
PS:不想要范围查询或那种排序。
解决方案
您可以使用谓词过滤。https://www.aerospike.com/docs/guide/predicate.html
用于谓词过滤的Python 客户端文档包含使用aerospike.predexp
帮助程序的示例。
Java 客户端在 repo 中有类的示例。PredExp
推荐阅读
- plot - 通过研究在漏斗图中着色点
- javascript - 有没有办法让我的前缀不区分大小写(Discord.js)
- php - 无法从数据透视表中播种
- angular - 垫表子模块未过滤从父模块传递的字符串
- codeigniter - 您没有选择要上传的文件在 codeigniter 中出错
- reactjs - React - 使用外部配置填充 UserManagerSettings
- javascript - 如何使用 Sequalize 保存 n:m 关联?
- lxml - openpyxl 无法处理写入 lxml.etree._ElementUnicodeResult
- python - 如何在 Tensorflow 2.0 中做 Cohen Kappa 二次损失?
- php - 类 DateInterval 的对象无法在 php 中转换为字符串