hazelcast-有一种方法可以遍历地图键和/或值以进行查询
问题描述:
我有一个将地图作为其字段之一的类.在Hazelcast中,有没有一种方法可以使用谓词来查询地图中的键具有我要查找的值的对象?
I have an class that has a map as one of its fields. Is there a way in Hazelcast using predicates to query for object where the key in the map has the values I am looking for?
答
地图上的查询尚未实现(因为它们是列表/数组的开箱即用).但是,可以实现自己的ValueExtractor
以根据键从映射中提取值.
Queries on maps are not yet implemented (as they are out of the box for lists / arrays). It is, however, possible to implement your own ValueExtractor
to extract the values from the map based on your key.
http://docs.hazelcast .org/docs/3.8/manual/html-single/index.html#custom-属性