您可能知道 Coherence 针对其缓存集群提供“过滤”api,如下所示:
// assuming cache cluster is full of ProductEntity objects
NamedCache c = CacheFactory.getCache("products");
Filter vipFilter = new EqualsFilter("productCode", 1);
Filter dateFilter = new GreaterFilter("createDate", new Date() - 48hrs);
List l = c.query(new AndFilter(vipFilter, dateFilter));
...
我的问题 - 在针对键/值存储构建复杂分布式查询的能力方面,我们是否可以替代 Coherence。
非常感谢!