Aerospike:如何对二级索引执行IN查询

时间:2018-12-01 13:25:42

标签: predicate aerospike

如何在Aerospike上的二级索引上执行(类似于SQL)IN查询。为此,我们需要UDF吗?

这样的事情:从ns.set中选择*,其中(1,2,3)中的si_bin

java aerospike客户端中有可用的东西吗?

PS:不需要范围查询或那种排序。

1 个答案:

答案 0 :(得分:3)

您可以使用谓词过滤。 https://www.aerospike.com/docs/guide/predicate.html

Python客户端documentation for predicate filtering提供了使用aerospike.predexp帮助程序的示例。

Java客户端的仓库中有examples for class PredExp

相关问题