Hi, > when we call cache.*localEntires *and we get the Iterable <http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true> <javax.cache.Cache.Entry<K <https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteCache.html> ,V <https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteCache.html> *>> *as a result, does it mean that, those entries were "transferred" to heap?
No, if you will use Iterator, you will get data from offheap to heap one-by-one, so you will never face problems with OutOfMemory Thanks, Evgenii 2017-09-01 10:34 GMT+03:00 Krzysztof Chmielewski < [email protected]>: > Hello All, > > I have a question about IgniteCache's *localEntries(CachePeekMode > <https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/cache/CachePeekMode.html>* > *... peekModes)* method result. > In our case we are using Ignite 2.1.0 > > We are broadcasting a closure to our ignite nodes to call > igniteCache.localEntires. We are using offHeap mode, so obviously all > entries are stored offHeap. But when we call cache.*localEntires *and we > get the Iterable > <http://docs.oracle.com/javase/7/docs/api/java/lang/Iterable.html?is-external=true> > <javax.cache.Cache.Entry<K > <https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteCache.html> > ,V > <https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteCache.html> > *>> *as a result, does it men that, those entries were "transferred" to > heap? > > I'm asking because in ScanQuery object we can set the pageSize to get only > a certain number of entries at once, and further pages are fetched > automatically. > > Thanks, > Krzysztof >
