Marco, There is no way to perform "get" operations on heap entries solely, as far as I know. Looks like you are trying to miss-use a Java heap cache.
What you need can be achieved by using some tree data structure like Java TreeSet. Every time you insert something into cache, you can update this data structure, so it will contain top 100 entries. Such updates can be performed inside a continuous query listener: https://apacheignite.readme.io/docs/continuous-queries So, you'll have all data stored in Ignite cache and top 100 entries stored in your own data structure. Denis ср, 28 февр. 2018 г. в 2:04, mamaco <mam...@163.com>: > After reading valentin's example > <https://github.com/gridgain/gridgain-advanced-examples/blob/master/src/main/java/org/gridgain/examples/datagrid/eviction/CustomEvictionPolicyExample.java> > and a user discussion > <http://apache-ignite-users.70518.x6.nabble.com/Enforcing-data-to-be-stored-in-Heap-only-td15141.html>, > > > I found what you mentioned is correct, in a later test, after rolling back > the ignite from 2.3.0 to 1.7.0, then everything works normally. > > But, *'how to read on-heap entries directly via ignite 2.0+'* is still a > major pain to me, > because what I need is 'top 100 entries', is there any approach to do > this? > > Marco > > > ------------------------------ > Sent from the Apache Ignite Users mailing list archive > <http://apache-ignite-users.70518.x6.nabble.com/> at Nabble.com. >