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(GridCacheContext<?,?> cctx,
CacheDataRowAdapter.RowData rowData)
Read row from data pages.
|
void |
initFromLink(GridCacheContext<?,?> cctx,
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(GridCacheContext<?,?> cctx, CacheDataRowAdapter.RowData rowData) throws IgniteCheckedException
cctx - Cache context.rowData - Required row data.IgniteCheckedException - If failed.public final void initFromLink(@Nullable
GridCacheContext<?,?> cctx,
GridCacheSharedContext<?,?> sharedCtx,
PageMemory pageMem,
CacheDataRowAdapter.RowData rowData)
throws IgniteCheckedException
cctx - Cctx.sharedCtx - Shared context.pageMem - Page memory.rowData - Row data.IgniteCheckedExceptionpublic 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 CacheDataRowpublic 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.0.0 Release Date : April 30 2017