我正在尝试从我命名的 PARTITIONED 缓存中获取所有项目。目前我正在使用
List<Cache.Entry<String, Object>> found =
stmCache.query(new ScanQuery<String, Object>(
new IgniteBiPredicate<String, Object>() {
@Override
public boolean apply(String key, Object person) {
return true;
}
})).getAll();
这表现得不太好。可以使用:
IgniteCompute compute = ignite.compute();
做同样的事情,或者有其他建议吗?
最佳答案
尝试cache.iterator()
API:
Iterator<Cache.Entry<String, Object>> iter = cache.iterator();
关于java - Apache 点燃: How to get all items from named cached,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42296027/