Ravi,

IgniteCache does not have a method like getAll() because this can simply
trigger an OOME on the node that receiving the data.

If you want to process all entries on a single node, you can use
IgniteCache#query() method and pass an instance of ScanQuery object to this
method. Resulting cursor will allow you to iterate over cache entries. You
can refer to [1] for more details.

Note that, generally, such an approach is not very efficient because you
are sending a lot of data across the network. You may want to exploit
Ignite compute functionality and collocate your computations with data. In
this case only small objects responsible for the computations and
computation results will be sent across the network. The approach is
described in [2]

Hope this helps,
AG
------
[1] https://apacheignite.readme.io/docs/cache-queries
[2] https://apacheignite.readme.io/docs/collocate-compute-and-data

Reply via email to