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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewMvccVersion, newMvccVersion, newMvccVersion, newMvccVersionmvccVersion, mvccVersion, mvccVersion, mvccVersion@GridToStringExclude protected long link
@GridToStringInclude protected KeyCacheObject key
@GridToStringInclude protected CacheObject val
@GridToStringInclude 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.protected int readHeader(long addr,
int off)
addr - Address.off - Offsetprotected IncompleteObject<?> readFragment(GridCacheSharedContext<?,?> sharedCtx, CacheObjectContext coctx, ByteBuffer buf, boolean keyOnly, boolean readCacheId, IncompleteObject<?> incomplete) throws IgniteCheckedException
sharedCtx - Cache shared context.coctx - Cache object context.buf - Buffer.keyOnly - true If need to read only key object.readCacheId - true If need to read cache ID.incomplete - Incomplete object.IgniteCheckedException - If failed.protected void readFullRow(GridCacheSharedContext<?,?> sharedCtx, CacheObjectContext coctx, long addr, CacheDataRowAdapter.RowData rowData, boolean readCacheId) throws IgniteCheckedException
sharedCtx - Cache shared context.coctx - Cache object context.addr - Address.rowData - Required row data.readCacheId - true If need to read cache ID.IgniteCheckedException - If failed.protected IncompleteObject<?> readIncompleteCacheId(ByteBuffer buf, IncompleteObject<?> incomplete)
buf - Buffer.incomplete - Incomplete.protected IncompleteCacheObject readIncompleteKey(CacheObjectContext coctx, ByteBuffer buf, IncompleteCacheObject incomplete) throws IgniteCheckedException
coctx - Cache object context.buf - Buffer.incomplete - Incomplete object.IgniteCheckedException - If failed.protected IncompleteCacheObject readIncompleteValue(CacheObjectContext coctx, ByteBuffer buf, IncompleteCacheObject incomplete) throws IgniteCheckedException
coctx - Cache object context.buf - Buffer.incomplete - Incomplete object.IgniteCheckedException - If failed.protected IncompleteObject<?> readIncompleteExpireTime(ByteBuffer buf, IncompleteObject<?> incomplete)
buf - Buffer.incomplete - Incomplete object.protected IncompleteObject<?> readIncompleteVersion(ByteBuffer buf, IncompleteObject<?> incomplete) throws IgniteCheckedException
buf - Buffer.incomplete - Incomplete object.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 CacheDataRowpartition in interface Storablepublic long link()
link in interface CacheSearchRowlink in interface Storablepublic void link(long link)
link in interface CacheDataRowlink in interface Storablelink - Link for this row.public int hash()
hash in interface CacheSearchRowpublic int size()
throws IgniteCheckedException
size in interface StorableIgniteCheckedException - If failed.public int headerSize()
headerSize in interface Storablepublic long mvccCoordinatorVersion()
mvccCoordinatorVersion in interface MvccVersionAwarepublic long mvccCounter()
mvccCounter in interface MvccVersionAwarepublic int mvccOperationCounter()
mvccOperationCounter in interface MvccVersionAwarepublic byte mvccTxState()
mvccTxState in interface MvccVersionAwarepublic long newMvccCoordinatorVersion()
newMvccCoordinatorVersion in interface MvccUpdateVersionAwarepublic long newMvccCounter()
newMvccCounter in interface MvccUpdateVersionAwarepublic int newMvccOperationCounter()
newMvccOperationCounter in interface MvccUpdateVersionAwarepublic byte newMvccTxState()
newMvccTxState in interface MvccUpdateVersionAware
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019