Class DataRowCacheAware

  • All Implemented Interfaces:
    CacheDataRow, CacheSearchRow, Storable

    public class DataRowCacheAware
    extends DataRow
    Data row implementation that can optionally hide the cache identifier and can set null as value.
    It is used to simplify storing a data row into page memory, because in some cases the cache identifier is not stored on the data pages, but is required to link this data row in BPlusTree.
    • Constructor Detail

      • DataRowCacheAware

        public DataRowCacheAware​(KeyCacheObject key,
                                 @Nullable
                                 @Nullable CacheObject val,
                                 GridCacheVersion ver,
                                 int part,
                                 long expireTime,
                                 int cacheId,
                                 boolean storeCacheId)
        Parameters:
        key - Key.
        val - Value.
        ver - Version.
        part - Partition.
        expireTime - Expire time.
        cacheId - Cache ID.
        storeCacheId - Flag indicates that cacheId should be stored in data page.
    • Method Detail

      • storeCacheId

        public void storeCacheId​(boolean storeCacheId)
        Parameters:
        storeCacheId - Flag indicates that cacheId should be stored in data page.