public class MvccUpdateDataRow extends MvccDataRow implements MvccUpdateResult, BPlusTree.TreeVisitorClosure<CacheSearchRow,CacheDataRow>
CacheDataRowAdapter.RowDatacacheId, expireTime, key, link, val, ver, verReadyCAN_WRITE, DIRTY, STOP| Constructor and Description |
|---|
MvccUpdateDataRow(GridCacheContext cctx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
int part,
long expireTime,
MvccSnapshot mvccSnapshot,
MvccVersion newVer,
@Nullable CacheEntryPredicate filter,
boolean primary,
boolean lockOnly,
boolean needHist,
boolean fastUpdate,
boolean needOldVal,
boolean needPrevValue) |
| Modifier and Type | Method and Description |
|---|---|
List<MvccLinkAwareSearchRow> |
cleanupRows() |
List<MvccLinkAwareSearchRow> |
history() |
CacheInvokeResult |
invokeResult() |
void |
invokeResult(CacheInvokeResult invokeRes) |
boolean |
isKeyAbsentBefore() |
CacheObject |
newValue() |
CacheDataRow |
oldRow() |
CacheObject |
oldValue() |
@NotNull ResultType |
resultType() |
void |
resultType(ResultType type) |
MvccVersion |
resultVersion() |
int |
state() |
String |
toString() |
void |
value(CacheObject val0) |
int |
visit(BPlusTree<CacheSearchRow,CacheDataRow> tree,
BPlusIO<CacheSearchRow> io,
long pageAddr,
int idx,
IgniteWriteAheadLogManager wal)
Performs inspection or operation on a specified row.
|
headerSize, keyAbsentBeforeFlag, keyAbsentBeforeFlag, mvccCoordinatorVersion, mvccCounter, mvccOperationCounter, mvccTxState, mvccTxState, mvccVersion, newMvccCoordinatorVersion, newMvccCounter, newMvccOperationCounter, newMvccTxState, newMvccTxState, newMvccVersion, readHeader, sizecacheId, hash, key, link, partitioncacheId, expireTime, initFromDataPage, initFromLink, initFromLink, initFromLink, isReady, key, link, readFragment, readFullRow, readIncompleteCacheId, readIncompleteExpireTime, readIncompleteKey, readIncompleteValue, readIncompleteVersion, value, versionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitioVersionsnewMvccVersion, newMvccVersion, newMvccVersionmvccVersion, mvccVersion, mvccVersionpublic MvccUpdateDataRow(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, int part, long expireTime, MvccSnapshot mvccSnapshot, MvccVersion newVer, @Nullable @Nullable CacheEntryPredicate filter, boolean primary, boolean lockOnly, boolean needHist, boolean fastUpdate, boolean needOldVal, boolean needPrevValue)
cctx - Cache context.key - Key.val - Value.ver - Version.part - Partition.expireTime - Expire time.mvccSnapshot - MVCC snapshot.newVer - Update version.primary - Primary node flag.lockOnly - Whether no actual update should be done and the only thing to do is to acquire lock.needHist - Whether to collect rows created or affected by the current tx.fastUpdate - Fast update visit mode.needOldVal - True if need old value.public int visit(BPlusTree<CacheSearchRow,CacheDataRow> tree, BPlusIO<CacheSearchRow> io, long pageAddr, int idx, IgniteWriteAheadLogManager wal) throws IgniteCheckedException
visit in interface BPlusTree.TreeVisitorClosure<CacheSearchRow,CacheDataRow>tree - The tree.io - Th tree IO object.pageAddr - The page address.idx - The item index.IgniteCheckedException - If failed.public int state()
state in interface BPlusTree.TreeVisitorClosure<CacheSearchRow,CacheDataRow>public CacheDataRow oldRow()
@NotNull public @NotNull ResultType resultType()
resultType in interface MvccUpdateResultpublic List<MvccLinkAwareSearchRow> cleanupRows()
public MvccVersion resultVersion()
resultVersion in interface MvccUpdateResultpublic List<MvccLinkAwareSearchRow> history()
history in interface MvccUpdateResultpublic CacheObject newValue()
newValue in interface MvccUpdateResultpublic CacheObject oldValue()
oldValue in interface MvccUpdateResultpublic boolean isKeyAbsentBefore()
isKeyAbsentBefore in interface MvccUpdateResultTrue if this key was inserted in the cache with this row in the same transaction.public void value(CacheObject val0)
public void invokeResult(CacheInvokeResult invokeRes)
public CacheInvokeResult invokeResult()
invokeResult in interface MvccUpdateResultpublic void resultType(ResultType type)
public String toString()
toString in class MvccDataRow
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020