protected class IgniteCacheOffheapManagerImpl.CacheDataStoreImpl extends Object implements IgniteCacheOffheapManager.CacheDataStore
| Modifier and Type | Field and Description |
|---|---|
protected AtomicLong |
cntr
Update counter.
|
protected long |
initCntr
Initial update counter.
|
| Constructor and Description |
|---|
CacheDataStoreImpl(int partId,
String name,
CacheDataRowStore rowStore,
CacheDataTree dataTree) |
protected final AtomicLong cntr
protected long initCntr
public CacheDataStoreImpl(int partId,
String name,
CacheDataRowStore rowStore,
CacheDataTree dataTree)
partId - Partition number.name - Name.rowStore - Row store.dataTree - Data tree.public int partId()
partId in interface IgniteCacheOffheapManager.CacheDataStorepublic long cacheSize(int cacheId)
cacheSize in interface IgniteCacheOffheapManager.CacheDataStorecacheId - Cache ID.public Map<Integer,Long> cacheSizes()
cacheSizes in interface IgniteCacheOffheapManager.CacheDataStorepublic long fullSize()
fullSize in interface IgniteCacheOffheapManager.CacheDataStorepublic long updateCounter()
updateCounter in interface IgniteCacheOffheapManager.CacheDataStorepublic void updateCounter(long val)
updateCounter in interface IgniteCacheOffheapManager.CacheDataStoreval - Update index value.public String name()
name in interface IgniteCacheOffheapManager.CacheDataStorepublic void invoke(GridCacheContext cctx, KeyCacheObject key, IgniteCacheOffheapManager.OffheapInvokeClosure c) throws IgniteCheckedException
invoke in interface IgniteCacheOffheapManager.CacheDataStorecctx - Cache context.key - Key.c - Closure.IgniteCheckedException - If failed.public CacheDataRow createRow(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
createRow in interface IgniteCacheOffheapManager.CacheDataStorecctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row.IgniteCheckedException - If failed.public void update(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
update in interface IgniteCacheOffheapManager.CacheDataStorecctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row if available.IgniteCheckedException - If failed.public void remove(GridCacheContext cctx, KeyCacheObject key, int partId) throws IgniteCheckedException
remove in interface IgniteCacheOffheapManager.CacheDataStorecctx - Cache context.key - Key.partId - Partition number.IgniteCheckedException - If failed.public CacheDataRow find(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
find in interface IgniteCacheOffheapManager.CacheDataStorecctx - Cache context.key - Key.IgniteCheckedException - If failed.public GridCursor<? extends CacheDataRow> cursor() throws IgniteCheckedException
cursor in interface IgniteCacheOffheapManager.CacheDataStoreIgniteCheckedException - If failed.public GridCursor<? extends CacheDataRow> cursor(int cacheId) throws IgniteCheckedException
cursor in interface IgniteCacheOffheapManager.CacheDataStorecacheId - Cache ID.IgniteCheckedException - If failed.public GridCursor<? extends CacheDataRow> cursor(int cacheId, KeyCacheObject lower, KeyCacheObject upper) throws IgniteCheckedException
cursor in interface IgniteCacheOffheapManager.CacheDataStorecacheId - Cache ID.lower - Lower bound.upper - Upper bound.IgniteCheckedException - If failed.public GridCursor<? extends CacheDataRow> cursor(int cacheId, KeyCacheObject lower, KeyCacheObject upper, Object x) throws IgniteCheckedException
cursor in interface IgniteCacheOffheapManager.CacheDataStorecacheId - 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.public void destroy()
throws IgniteCheckedException
destroy in interface IgniteCacheOffheapManager.CacheDataStoreIgniteCheckedException - If failed.public void clear(int cacheId)
throws IgniteCheckedException
clear in interface IgniteCacheOffheapManager.CacheDataStorecacheId - Cache ID.IgniteCheckedException - If failed.public RowStore rowStore()
rowStore in interface IgniteCacheOffheapManager.CacheDataStorepublic long nextUpdateCounter()
nextUpdateCounter in interface IgniteCacheOffheapManager.CacheDataStorepublic long initialUpdateCounter()
initialUpdateCounter in interface IgniteCacheOffheapManager.CacheDataStorepublic void updateInitialCounter(long cntr)
updateInitialCounter in interface IgniteCacheOffheapManager.CacheDataStorecntr - Counter.public void setRowCacheCleaner(GridQueryRowCacheCleaner rowCacheCleaner)
setRowCacheCleaner in interface IgniteCacheOffheapManager.CacheDataStorerowCacheCleaner - Rows cache cleaner.public void init(long size,
long updCntr,
@Nullable
Map<Integer,Long> cacheSizes)
init in interface IgniteCacheOffheapManager.CacheDataStoresize - Size to init.updCntr - Update counter to init.cacheSizes - Cache sizes if store belongs to group containing multiple caches.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018