public class CacheDataRowAdapter extends Object implements CacheDataRow
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheDataRowAdapter.RowData |
| Modifier and Type | Field and Description |
|---|---|
protected int |
cacheId |
protected long |
expireTime |
protected KeyCacheObject |
key |
protected long |
link |
protected CacheObject |
val |
protected GridCacheVersion |
ver |
| Constructor and Description |
|---|
CacheDataRowAdapter(KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime) |
CacheDataRowAdapter(long link) |
| Modifier and Type | Method and Description |
|---|---|
int |
cacheId() |
long |
expireTime() |
int |
hash() |
void |
initFromLink(CacheGroupContext grp,
CacheDataRowAdapter.RowData rowData)
Read row from data pages.
|
void |
initFromLink(CacheGroupContext grp,
GridCacheSharedContext<?,?> sharedCtx,
PageMemory pageMem,
CacheDataRowAdapter.RowData rowData)
Read row from data pages.
|
boolean |
isReady() |
KeyCacheObject |
key() |
void |
key(KeyCacheObject key) |
long |
link() |
void |
link(long link) |
int |
partition() |
String |
toString() |
CacheObject |
value() |
GridCacheVersion |
version() |
@GridToStringExclude protected long link
@GridToStringInclude protected KeyCacheObject key
@GridToStringInclude protected CacheObject val
protected long expireTime
@GridToStringInclude protected GridCacheVersion ver
@GridToStringInclude protected int cacheId
public CacheDataRowAdapter(long link)
link - Link.public CacheDataRowAdapter(KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime)
key - Key.val - Value.expireTime - Expire time.ver - Version.public final void initFromLink(CacheGroupContext grp, CacheDataRowAdapter.RowData rowData) throws IgniteCheckedException
grp - Cache group.rowData - Required row data.IgniteCheckedException - If failed.public final void initFromLink(@Nullable
CacheGroupContext grp,
GridCacheSharedContext<?,?> sharedCtx,
PageMemory pageMem,
CacheDataRowAdapter.RowData rowData)
throws IgniteCheckedException
grp - Cache group.sharedCtx - Shared context.pageMem - Page memory.rowData - Row data.IgniteCheckedException - If failed.public boolean isReady()
True if entry is ready.public KeyCacheObject key()
key in interface CacheSearchRowpublic void key(KeyCacheObject key)
key in interface CacheDataRowkey - Key.public int cacheId()
cacheId in interface CacheSearchRow0 if cache ID is not defined.public CacheObject value()
value in interface CacheDataRowpublic GridCacheVersion version()
version in interface CacheDataRowpublic long expireTime()
expireTime in interface CacheDataRowpublic int partition()
partition in interface CacheDataRowpublic long link()
link in interface CacheSearchRowpublic void link(long link)
link in interface CacheDataRowlink - Link for this row.public int hash()
hash in interface CacheSearchRow
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017