Integer/Long 类型上的 Hazelcast LIKE/ILIKE predicate/query

Hazelcast LIKE/ILIKE predicate/query on Integer/Long types

有没有办法在 Hazelcast 的分布式查询中对 Integer/Long 对象属性执行 ILIKE/LIKE 查询?

例如:在postgres中,我们可以这样查询,

select * from document where CAST(numOfPages AS TEXT) ilike '%2';

获取总页数以2结尾的文档。

请帮助我实现相同的 hazelcast 分布式查询场景。

试试值提取器,http://docs.hazelcast.org/docs/3.10.2/manual/html-single/index.html#custom-attributes

这将允许您 return 数字字段作为字符串,然后您可以 运行 LIKE 在它上面。

或者您可以 return oddeven,等等