查询兵马俑
有什么方法可以查询 Terracotta 实例存储的对象吗?
我正在寻找类似 SQL 的查询或任何基于字段过滤对象的方法。
Is there any way to Query against the objects stored by a Terracotta instance?
I am looking for SQL-Like Queries or any way to filter objects based on fields.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JOSQL 是对所有集合的迭代,因此如果对象数量很大,它可能会更慢。
您可以阅读帖子 http://tusharkhairnar.blogspot。 com/2009/05/querying-java-objects-stored-in.html 用于实现索引,以便查询速度很快。
forge 网站上发布了 tim-searchable,它具有更多功能并使用 Lucene 框架。
问候
图沙尔
JOSQL is iteration through all collection so if number of objects are large it could be slower.
You can read post http://tusharkhairnar.blogspot.com/2009/05/querying-java-objects-stored-in.html for implementing Indexing so that querying is fast.
There is tim-searchable released on forge site which has more features and uses Lucene framework.
Regards
Tushar
至少企业版有自己的搜索API:
http://www.terracotta.org/documentation/enterprise-ehcache/api-guide#enterprise-ehcache-search-api-for-clustered-caches
At least the enterprise version has its own search API:
http://www.terracotta.org/documentation/enterprise-ehcache/api-guide#enterprise-ehcache-search-api-for-clustered-caches