Class DataRowCacheAware
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter
-
- org.apache.ignite.internal.processors.cache.tree.DataRow
-
- org.apache.ignite.internal.processors.cache.persistence.DataRowCacheAware
-
- All Implemented Interfaces:
CacheDataRow,CacheSearchRow,Storable
public class DataRowCacheAware extends DataRow
Data row implementation that can optionally hide the cache identifier and can setnullas 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 inBPlusTree.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter
CacheDataRowAdapter.RowData
-
-
Constructor Summary
Constructors Constructor Description DataRowCacheAware(KeyCacheObject key, @Nullable CacheObject val, GridCacheVersion ver, int part, long expireTime, int cacheId, boolean storeCacheId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcacheId()voidstoreCacheId(boolean storeCacheId)@Nullable CacheObjectvalue()-
Methods inherited from class org.apache.ignite.internal.processors.cache.tree.DataRow
cacheId, hash, key, link, partition, partition
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter
expireTime, initFromDataPage, initFromLink, initFromLink, initFromLink, initFromPageBuffer, isReady, key, link, readFragment, readFullRow, readIncomplete, readIncompleteCacheId, readIncompleteExpireTime, readIncompleteKey, readIncompleteValue, readIncompleteVersion, size, toString, version
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.persistence.CacheDataRow
ioVersions
-
-
-
-
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.
-
cacheId
public int cacheId()
- Specified by:
cacheIdin interfaceCacheSearchRow- Overrides:
cacheIdin classCacheDataRowAdapter- Returns:
- Cache ID or
0if cache ID is not defined.
-
value
@Nullable public @Nullable CacheObject value()
- Specified by:
valuein interfaceCacheDataRow- Overrides:
valuein classCacheDataRowAdapter- Returns:
- Cache value.
-
-