【发布时间】:2011-04-15 07:52:31
【问题描述】:
您可能知道 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 的方法? 针对键/值存储构建复杂的分布式查询。
非常感谢!
【问题讨论】: