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