hazelcast-有一种方法可以遍历地图键和/或值以进行查询 [英] hazelcast - is there a way to iterate over a map keys and/or values to query

查看:202
本文介绍了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-属性

这篇关于hazelcast-有一种方法可以遍历地图键和/或值以进行查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆