hazelcast - is there a way to iterate over a map keys and/or values to query

我怕爱的太早我们不能终老 提交于 2019-12-12 17:21:20

问题


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?


回答1:


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-attributes



来源:https://stackoverflow.com/questions/43691378/hazelcast-is-there-a-way-to-iterate-over-a-map-keys-and-or-values-to-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!