Hi, I need to get a copy of a REPLICATED cache – as a ImmutableMap that I can exercise some mapping functions against.
Something like this: public List<Foo> findMatches(SearchTerms searchTerms) { ImmutableMap<String, Foo> cache = cache.getAsMap(); return matchingStrategy.match(cache, searchTerms); } public class MatchingStrategy { public List<Foo> match(Map<String, Foo> cache, SearchTerms searchTerms) { return cache.values().stream() .filter(contract -> searchTerms.matches(contract.getKey())) .collect(Collectors.toList()); } } where I’m looking for a IgniteCache::getAsMap() Or some way to implement that. But I’m sure there is a much better way to do this?? That cannot be performant. NOTE: this cache is relatively small and slow changing. Any help is greatly appreciated. Thanks, -- Chris -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/getAsMap-tp16242.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.