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 |
protected boolean |
verReady
Whether version is ready.
|
| Constructor and Description |
|---|
CacheDataRowAdapter(KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime) |
CacheDataRowAdapter(long link) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitioVersionsnewMvccVersion, 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
protected boolean verReady
@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(CacheGroupContext grp, CacheDataRowAdapter.RowData rowData, boolean skipVer) throws IgniteCheckedException
grp - Cache group.rowData - Required row data.skipVer - Whether version read should be skipped.IgniteCheckedException - If failed.public final void initFromLink(@Nullable
@Nullable CacheGroupContext grp,
GridCacheSharedContext<?,?> sharedCtx,
PageMemory pageMem,
CacheDataRowAdapter.RowData rowData,
boolean skipVer)
throws IgniteCheckedException
grp - Cache group.sharedCtx - Shared context.pageMem - Page memory.rowData - Row data.skipVer - Whether version read should be skipped.IgniteCheckedException - If failed.public final void initFromDataPage(DataPageIO io, long pageAddr, int itemId, @Nullable @Nullable CacheGroupContext grp, GridCacheSharedContext<?,?> sharedCtx, PageMemory pageMem, CacheDataRowAdapter.RowData rowData, boolean skipVer) throws IgniteCheckedException
io - Data page IO.pageAddr - Data page address.itemId - Row item Id.grp - Cache group.sharedCtx - Cache shared context.pageMem - Page memory.rowData - Required row data.skipVer - Whether version read should be skipped.IgniteCheckedException - If failed.protected int readHeader(GridCacheSharedContext<?,?> sharedCtx, long addr, int off, CacheDataRowAdapter.RowData rowData)
sharedCtx - Shared context.addr - Address.off - OffsetrowData - Required row data.protected IncompleteObject<?> readFragment(GridCacheSharedContext<?,?> sharedCtx, CacheObjectContext coctx, ByteBuffer buf, boolean keyOnly, boolean readCacheId, IncompleteObject<?> incomplete, boolean skipVer) 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.skipVer - Whether version read should be skipped.IgniteCheckedException - If failed.protected void readFullRow(GridCacheSharedContext<?,?> sharedCtx, CacheObjectContext coctx, long addr, CacheDataRowAdapter.RowData rowData, boolean readCacheId, boolean skipVer) throws IgniteCheckedException
sharedCtx - Cache shared context.coctx - Cache object context.addr - Address.rowData - Required row data.readCacheId - true If need to read cache ID.skipVer - Whether version read should be skipped.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, boolean skip) throws IgniteCheckedException
buf - Buffer.incomplete - Incomplete object.skip - Whether version should be skipped.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.9.1 Release Date : December 9 2020