Class DataRow
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter
-
- org.apache.ignite.internal.processors.cache.tree.DataRow
-
- All Implemented Interfaces:
CacheDataRow,CacheSearchRow,Storable
- Direct Known Subclasses:
DataRowCacheAware
public class DataRow extends CacheDataRowAdapter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter
CacheDataRowAdapter.RowData
-
-
Field Summary
Fields Modifier and Type Field Description protected inthashprotected intpart-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter
cacheId, expireTime, key, link, val, ver, verReady
-
-
Constructor Summary
Constructors Modifier Constructor Description DataRow()protectedDataRow(CacheGroupContext grp, int hash, long link, int part, CacheDataRowAdapter.RowData rowData, boolean skipVer)DataRow(KeyCacheObject key, CacheObject val, GridCacheVersion ver, int part, long expireTime, int cacheId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcacheId(int cacheId)inthash()voidkey(KeyCacheObject key)voidlink(long link)intpartition()voidpartition(int partId)-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.CacheDataRowAdapter
cacheId, expireTime, initFromDataPage, initFromLink, initFromLink, initFromLink, initFromPageBuffer, isReady, key, link, readFragment, readFullRow, readIncomplete, readIncompleteCacheId, readIncompleteExpireTime, readIncompleteKey, readIncompleteValue, readIncompleteVersion, size, toString, value, 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
-
DataRow
protected DataRow(CacheGroupContext grp, int hash, long link, int part, CacheDataRowAdapter.RowData rowData, boolean skipVer)
- Parameters:
grp- Cache group (used to initialize row).hash- Hash code.link- Link.part- Partition.rowData- Required row data.skipVer- Whether version read should be skipped.
-
DataRow
public DataRow(KeyCacheObject key, CacheObject val, GridCacheVersion ver, int part, long expireTime, int cacheId)
- Parameters:
key- Key.val- Value.ver- Version.part- Partition.expireTime- Expire time.cacheId- Cache ID.
-
DataRow
public DataRow()
-
-
Method Detail
-
key
public void key(KeyCacheObject key)
- Specified by:
keyin interfaceCacheDataRow- Overrides:
keyin classCacheDataRowAdapter- Parameters:
key- Key.
-
partition
public int partition()
- Specified by:
partitionin interfaceCacheDataRow- Specified by:
partitionin interfaceStorable- Overrides:
partitionin classCacheDataRowAdapter- Returns:
- Partition for this key.
-
partition
public void partition(int partId)
- Parameters:
partId- Partition id.
-
hash
public int hash()
- Specified by:
hashin interfaceCacheSearchRow- Overrides:
hashin classCacheDataRowAdapter- Returns:
- Key hash code.
-
link
public void link(long link)
- Specified by:
linkin interfaceCacheDataRow- Specified by:
linkin interfaceStorable- Overrides:
linkin classCacheDataRowAdapter- Parameters:
link- Link for this row.
-
cacheId
public void cacheId(int cacheId)
- Parameters:
cacheId- Cache ID.
-
-