protected class IgniteCacheOffheapManagerImpl.CacheDataStoreImpl extends Object implements IgniteCacheOffheapManager.CacheDataStore
| Modifier and Type | Field and Description |
|---|---|
protected AtomicLong |
cntr
Update counter.
|
protected Long |
initCntr
Initialized update counter.
|
protected AtomicLong |
storageSize
Partition size.
|
| Constructor and Description |
|---|
IgniteCacheOffheapManagerImpl.CacheDataStoreImpl(int partId,
String name,
IgniteCacheOffheapManagerImpl.CacheDataRowStore rowStore,
IgniteCacheOffheapManagerImpl.CacheDataTree dataTree) |
| Modifier and Type | Method and Description |
|---|---|
CacheDataRow |
createRow(KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime,
CacheDataRow oldRow) |
GridCursor<? extends CacheDataRow> |
cursor() |
GridCursor<? extends CacheDataRow> |
cursor(KeyCacheObject lower,
KeyCacheObject upper) |
void |
destroy()
Destroys the tree associated with the store.
|
CacheDataRow |
find(KeyCacheObject key) |
void |
init(long size,
long updCntr) |
Long |
initialUpdateCounter() |
void |
invoke(KeyCacheObject key,
IgniteCacheOffheapManager.OffheapInvokeClosure c) |
String |
name() |
long |
nextUpdateCounter() |
int |
partId() |
void |
remove(KeyCacheObject key,
int partId) |
RowStore |
rowStore() |
int |
size() |
void |
update(KeyCacheObject key,
int p,
CacheObject val,
GridCacheVersion ver,
long expireTime,
CacheDataRow oldRow) |
long |
updateCounter() |
void |
updateCounter(long val) |
void |
updateInitialCounter(long cntr) |
protected final AtomicLong cntr
protected final AtomicLong storageSize
protected Long initCntr
public IgniteCacheOffheapManagerImpl.CacheDataStoreImpl(int partId,
String name,
IgniteCacheOffheapManagerImpl.CacheDataRowStore rowStore,
IgniteCacheOffheapManagerImpl.CacheDataTree dataTree)
partId - Partition number.name - Name.rowStore - Row store.dataTree - Data tree.public int partId()
partId in interface IgniteCacheOffheapManager.CacheDataStorepublic int size()
size 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(KeyCacheObject key, IgniteCacheOffheapManager.OffheapInvokeClosure c) throws IgniteCheckedException
invoke in interface IgniteCacheOffheapManager.CacheDataStorekey - Key.c - Closure.IgniteCheckedException - If failed.public CacheDataRow createRow(KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
createRow in interface IgniteCacheOffheapManager.CacheDataStorekey - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row.IgniteCheckedException - If failed.public void update(KeyCacheObject key, int p, CacheObject val, GridCacheVersion ver, long expireTime, @Nullable CacheDataRow oldRow) throws IgniteCheckedException
update in interface IgniteCacheOffheapManager.CacheDataStorekey - Key.p - Partition.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row if available.IgniteCheckedException - If failed.public void remove(KeyCacheObject key, int partId) throws IgniteCheckedException
remove in interface IgniteCacheOffheapManager.CacheDataStorekey - Key.partId - Partition number.IgniteCheckedException - If failed.public CacheDataRow find(KeyCacheObject key) throws IgniteCheckedException
find in interface IgniteCacheOffheapManager.CacheDataStorekey - Key.IgniteCheckedException - If failed.public GridCursor<? extends CacheDataRow> cursor() throws IgniteCheckedException
cursor in interface IgniteCacheOffheapManager.CacheDataStoreIgniteCheckedException - If failed.public GridCursor<? extends CacheDataRow> cursor(KeyCacheObject lower, KeyCacheObject upper) throws IgniteCheckedException
cursor in interface IgniteCacheOffheapManager.CacheDataStorelower - Lower bound.upper - Upper bound.IgniteCheckedException - If failed.public void destroy()
throws IgniteCheckedException
destroy in interface IgniteCacheOffheapManager.CacheDataStoreIgniteCheckedException - 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 init(long size,
long updCntr)
init in interface IgniteCacheOffheapManager.CacheDataStoresize - Size to init.updCntr - Update counter to init.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017