ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@gridgain.com>
Subject Re: Missing ways to get access to Ignite CacheEntry
Date Wed, 16 Dec 2015 10:33:54 GMT
Hi Romain,

As the current documentation of org.apache.ignite.cache.CacheEntry 
states it's possible to get a reference to CacheEntry and its version 
only for methods that are executed over local data set stored on a node.
Among such methods are invoke & invokeAll and randomEntry.

You probably can get a CacheEntry and its non null version when a cache 
iterator is in use but the version will be 'null', as far as I remember, 
for those entries that are loaded from remote nodes.
Presently Ignite doesn't transfer the version from remote nodes as a 
part of response by perform reasons.

Please elaborate more on your particular use case and what API you would 
like to add in order to support it.


On 12/16/2015 12:58 PM, Romain Gilles wrote:
> Hi Igniters,
> I'm looking for a way to get access to the Ignite CacheEntry. For now this
> is the ways I found:
>     - Through the queris
>     - Through jsr 107 Cache Iterable
>     - Through jsr 107 Cache itterator
>     - Through IgniteCache::randomEntry()
> If I remember correctly it was possible to get the CacheEntry from a given
> key in old version of gridgain community
> version: GridCacheProjection::entry(K key) GridCacheEntry<K,V>
> I think it could be a good to introduce this feature at IgniteCache level.
> Or maybe there is an other way to do it.
> Thanks,
> Romain.

View raw message