public static interface IgniteCacheOffheapManager.CacheDataStore
int partId()
String name()
void init(long size,
long updCntr,
@Nullable
Map<Integer,Long> cacheSizes)
size - Size to init.updCntr - Update counter to init.cacheSizes - Cache sizes if store belongs to group containing multiple caches.long cacheSize(int cacheId)
cacheId - Cache ID.Map<Integer,Long> cacheSizes()
long fullSize()
void updateSize(int cacheId,
long delta)
cacheId - Cache ID.delta - Size delta.long updateCounter()
void updateCounter(long val)
val - Update counter.void updateCounter(long start,
long delta)
start - Start.delta - Deltalong nextUpdateCounter()
long getAndIncrementUpdateCounter(long delta)
delta - Delta.long initialUpdateCounter()
CacheDataRow createRow(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row.IgniteCheckedException - If failed.int cleanup(GridCacheContext cctx, @Nullable List<MvccLinkAwareSearchRow> cleanupRows) throws IgniteCheckedException
cctx - Cache context.cleanupRows - Rows to cleanup.IgniteCheckedException - If failed.void updateTxState(GridCacheContext cctx, CacheSearchRow row) throws IgniteCheckedException
cctx - Cache context.row - Row.IgniteCheckedExceptionvoid update(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row if available.IgniteCheckedException - If failed.boolean mvccInitialValue(GridCacheContext cctx, KeyCacheObject key, @Nullable CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer, MvccVersion newMvccVer) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.mvccVer - MVCC version.newMvccVer - New MVCC version.True if new value was inserted.IgniteCheckedException - If failed.boolean mvccInitialValueIfAbsent(GridCacheContext cctx, KeyCacheObject key, @Nullable CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer, MvccVersion newMvccVer, byte txState, byte newTxState) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.mvccVer - MVCC version.newMvccVer - New MVCC version.txState - Tx state hint for the mvcc version.newTxState - Tx state hint for the new mvcc version.True if new value was inserted.IgniteCheckedException - If failed.boolean mvccUpdateRowWithPreloadInfo(GridCacheContext cctx, KeyCacheObject key, @Nullable CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer, MvccVersion newMvccVer, byte mvccTxState, byte newMvccTxState) throws IgniteCheckedException
cctx - Grid cache context.key - Key.val - Value.ver - Version.expireTime - Expiration time.mvccVer - Mvcc version.newMvccVer - New mvcc version.true on success.IgniteCheckedException, - if failed.IgniteCheckedExceptionMvccUpdateResult mvccUpdate(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, MvccSnapshot mvccSnapshot, @Nullable CacheEntryPredicate filter, javax.cache.processor.EntryProcessor entryProc, Object[] invokeArgs, boolean primary, boolean needHist, boolean noCreate, boolean needOldVal, boolean retVal) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.mvccSnapshot - MVCC snapshot.filter - Filter.entryProc - Entry processor.invokeArgs - Entry processor invoke arguments.primary - True if update is executed on primary node.needHist - Flag to collect history.noCreate - Flag indicating that row should not be created if absent.needOldVal - True if need old value.retVal - Flag to return previous value.IgniteCheckedException - If failed.MvccUpdateResult mvccRemove(GridCacheContext cctx, KeyCacheObject key, MvccSnapshot mvccSnapshot, @Nullable CacheEntryPredicate filter, boolean primary, boolean needHistory, boolean needOldVal, boolean retVal) throws IgniteCheckedException
cctx - Cache context.key - Key.mvccSnapshot - MVCC snapshot.filter - Filter.primary - True if update is executed on primary node.needHistory - Flag to collect history.needOldVal - True if need old value.retVal - Flag to return previous value.IgniteCheckedException - If failed.MvccUpdateResult mvccLock(GridCacheContext cctx, KeyCacheObject key, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
cctx - Cache context.key - Key.mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.@Nullable GridLongList mvccUpdateNative(GridCacheContext cctx, boolean primary, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
cctx - Cache context.primary - True if update is executed on primary node.key - Key.val - Value.ver - Version.expireTime - Expire time.mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.@Nullable GridLongList mvccRemoveNative(GridCacheContext cctx, boolean primary, KeyCacheObject key, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
cctx - Cache context.primary - True if update is executed on primary node.key - Key.mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.void mvccRemoveAll(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
cctx - Cache context.key - Key.IgniteCheckedException - If failed.void invoke(GridCacheContext cctx, KeyCacheObject key, IgniteCacheOffheapManager.OffheapInvokeClosure c) throws IgniteCheckedException
cctx - Cache context.key - Key.c - Closure.IgniteCheckedException - If failed.void mvccApplyUpdate(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.mvccVer - Mvcc version.IgniteCheckedExceptionvoid remove(GridCacheContext cctx, KeyCacheObject key, int partId) throws IgniteCheckedException
cctx - Cache context.key - Key.partId - Partition number.IgniteCheckedException - If failed.CacheDataRow find(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
cctx - Cache context.key - Key.IgniteCheckedException - If failed.GridCursor<CacheDataRow> mvccAllVersionsCursor(GridCacheContext cctx, KeyCacheObject key, Object x) throws IgniteCheckedException
cctx - Cache context.key - Key.x - Implementation specific argument, null always means that we need to return full detached data row.IgniteCheckedException - If failed.CacheDataRow mvccFind(GridCacheContext cctx, KeyCacheObject key, MvccSnapshot snapshot) throws IgniteCheckedException
cctx - Cache context.key - Key.IgniteCheckedException - If failed.List<IgniteBiTuple<Object,MvccVersion>> mvccFindAllVersions(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
cctx - Cache context.key - Key.IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor() throws IgniteCheckedException
IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor(Object x) throws IgniteCheckedException
x - Implementation specific argument, null always means that we need to return full detached data row.IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor(MvccSnapshot mvccSnapshot) throws IgniteCheckedException
mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor(int cacheId) throws IgniteCheckedException
cacheId - Cache ID.IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor(int cacheId, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
cacheId - Cache ID.mvccSnapshot - Mvcc snapshot.IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor(int cacheId, KeyCacheObject lower, KeyCacheObject upper) throws IgniteCheckedException
cacheId - Cache ID.lower - Lower bound.upper - Upper bound.IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor(int cacheId, KeyCacheObject lower, KeyCacheObject upper, Object x) throws IgniteCheckedException
cacheId - Cache ID.lower - Lower bound.upper - Upper bound.x - Implementation specific argument, null always means that we need to return full detached data row.IgniteCheckedException - If failed.GridCursor<? extends CacheDataRow> cursor(int cacheId, KeyCacheObject lower, KeyCacheObject upper, Object x, MvccSnapshot snapshot) throws IgniteCheckedException
cacheId - Cache ID.lower - Lower bound.upper - Upper bound.x - Implementation specific argument, null always means that we need to return full detached data row.snapshot - Mvcc snapshot.IgniteCheckedException - If failed.void destroy()
throws IgniteCheckedException
IgniteCheckedException - If failed.void clear(int cacheId)
throws IgniteCheckedException
cacheId - Cache ID.IgniteCheckedException - If failed.RowStore rowStore()
void updateInitialCounter(long cntr)
cntr - Counter.void setRowCacheCleaner(GridQueryRowCacheCleaner rowCacheCleaner)
rowCacheCleaner - Rows cache cleaner.PendingEntriesTree pendingTree()
void finalizeUpdateCountres()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019