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.IgniteCheckedException
public boolean isReady()
True
if entry is ready.public KeyCacheObject key()
key
in interface CacheSearchRow
public void key(KeyCacheObject key)
key
in interface CacheDataRow
key
- Key.public int cacheId()
cacheId
in interface CacheDataRow
public CacheObject value()
value
in interface CacheDataRow
public GridCacheVersion version()
version
in interface CacheDataRow
public long expireTime()
expireTime
in interface CacheDataRow
public int partition()
partition
in interface CacheDataRow
public long link()
link
in interface CacheSearchRow
public void link(long link)
link
in interface CacheDataRow
link
- Link for this row.public int hash()
hash
in interface CacheSearchRow
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017