public static interface IgniteCacheOffheapManager.CacheDataStore
| Modifier and Type | Method and Description |
|---|---|
long |
cacheSize(int cacheId) |
Map<Integer,Long> |
cacheSizes() |
int |
cleanup(GridCacheContext cctx,
@Nullable List<MvccLinkAwareSearchRow> cleanupRows) |
void |
clear(int cacheId)
Clears all the records associated with logical cache with given ID.
|
CacheDataRow |
createRow(GridCacheContext cctx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime,
@Nullable CacheDataRow oldRow) |
GridCursor<? extends CacheDataRow> |
cursor() |
GridCursor<? extends CacheDataRow> |
cursor(int cacheId) |
GridCursor<? extends CacheDataRow> |
cursor(int cacheId,
KeyCacheObject lower,
KeyCacheObject upper) |
GridCursor<? extends CacheDataRow> |
cursor(int cacheId,
KeyCacheObject lower,
KeyCacheObject upper,
Object x) |
GridCursor<? extends CacheDataRow> |
cursor(int cacheId,
KeyCacheObject lower,
KeyCacheObject upper,
Object x,
MvccSnapshot snapshot) |
GridCursor<? extends CacheDataRow> |
cursor(int cacheId,
MvccSnapshot mvccSnapshot) |
GridCursor<? extends CacheDataRow> |
cursor(MvccSnapshot mvccSnapshot) |
GridCursor<? extends CacheDataRow> |
cursor(Object x) |
void |
destroy()
Destroys the tree associated with the store.
|
GridLongList |
finalizeUpdateCounters()
Flushes pending update counters closing all possible gaps.
|
CacheDataRow |
find(GridCacheContext cctx,
KeyCacheObject key) |
long |
fullSize() |
long |
getAndIncrementUpdateCounter(long delta)
Returns current value and updates counter by delta.
|
boolean |
init()
Initialize data store if it exists.
|
long |
initialUpdateCounter() |
void |
insertRows(Collection<DataRowCacheAware> rows,
IgnitePredicateX<CacheDataRow> initPred)
Insert rows into page memory.
|
void |
invoke(GridCacheContext cctx,
KeyCacheObject key,
IgniteCacheOffheapManager.OffheapInvokeClosure c) |
boolean |
isEmpty() |
void |
markDestroyed()
Mark store as destroyed.
|
GridCursor<CacheDataRow> |
mvccAllVersionsCursor(GridCacheContext cctx,
KeyCacheObject key,
Object x)
Returns iterator over the all row versions for the given key.
|
boolean |
mvccApplyHistoryIfAbsent(GridCacheContext cctx,
KeyCacheObject key,
List<GridCacheMvccEntryInfo> hist)
Tries to apply entry history.
|
void |
mvccApplyUpdate(GridCacheContext cctx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime,
MvccVersion mvccVer) |
CacheDataRow |
mvccFind(GridCacheContext cctx,
KeyCacheObject key,
MvccSnapshot snapshot) |
List<IgniteBiTuple<Object,MvccVersion>> |
mvccFindAllVersions(GridCacheContext cctx,
KeyCacheObject key)
For testing only.
|
boolean |
mvccInitialValue(GridCacheContext cctx,
KeyCacheObject key,
@Nullable CacheObject val,
GridCacheVersion ver,
long expireTime,
MvccVersion mvccVer,
MvccVersion newMvccVer) |
MvccUpdateResult |
mvccLock(GridCacheContext cctx,
KeyCacheObject key,
MvccSnapshot mvccSnapshot) |
MvccUpdateResult |
mvccRemove(GridCacheContext cctx,
KeyCacheObject key,
MvccSnapshot mvccSnapshot,
@Nullable CacheEntryPredicate filter,
boolean primary,
boolean needHistory,
boolean needOldVal,
boolean retVal) |
void |
mvccRemoveAll(GridCacheContext cctx,
KeyCacheObject key) |
MvccUpdateResult |
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,
boolean keepBinary) |
boolean |
mvccUpdateRowWithPreloadInfo(GridCacheContext cctx,
KeyCacheObject key,
@Nullable CacheObject val,
GridCacheVersion ver,
long expireTime,
MvccVersion mvccVer,
MvccVersion newMvccVer,
byte mvccTxState,
byte newMvccTxState)
Apply update with full history.
|
long |
nextUpdateCounter() |
int |
partId() |
PartitionMetaStorage<SimpleDataRow> |
partStorage()
Partition storage.
|
@Nullable PartitionUpdateCounter |
partUpdateCounter() |
PendingEntriesTree |
pendingTree()
Return PendingTree for data store.
|
void |
preload()
Preload a store into page memory.
|
void |
remove(GridCacheContext cctx,
KeyCacheObject key,
int partId) |
long |
reserve(long delta) |
long |
reservedCounter() |
void |
resetInitialUpdateCounter()
Reset the initial value of the partition counter.
|
void |
resetUpdateCounter()
Reset counter for partition.
|
RowStore |
rowStore() |
void |
setRowCacheCleaner(GridQueryRowCacheCleaner rowCacheCleaner)
Inject rows cache cleaner.
|
CacheDataTree |
tree() |
void |
update(GridCacheContext cctx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime,
@Nullable CacheDataRow oldRow) |
long |
updateCounter() |
void |
updateCounter(long val) |
boolean |
updateCounter(long start,
long delta)
Updates counters from start value by delta value.
|
void |
updateInitialCounter(long start,
long delta) |
void |
updateSize(int cacheId,
long delta)
Updates size metric for particular cache.
|
void |
updateTxState(GridCacheContext cctx,
CacheSearchRow row) |
CacheDataTree tree()
boolean init()
True if initialized.int partId()
long cacheSize(int cacheId)
cacheId - Cache ID.Map<Integer,Long> cacheSizes()
long fullSize()
boolean isEmpty()
True if there are no items in the store.void updateSize(int cacheId,
long delta)
cacheId - Cache ID.delta - Size delta.long updateCounter()
long reservedCounter()
@Nullable @Nullable PartitionUpdateCounter partUpdateCounter()
null if store is not yet created.long reserve(long delta)
delta - Delta.void updateCounter(long val)
val - Update counter.boolean updateCounter(long start,
long delta)
start - Start.delta - Delta.long nextUpdateCounter()
long getAndIncrementUpdateCounter(long delta)
delta - Delta.long initialUpdateCounter()
CacheDataRow createRow(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, @Nullable @Nullable CacheDataRow oldRow) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row.IgniteCheckedException - If failed.void insertRows(Collection<DataRowCacheAware> rows, IgnitePredicateX<CacheDataRow> initPred) throws IgniteCheckedException
rows - Rows.initPred - Applied to all rows. Each row that not matches the predicate is removed.IgniteCheckedException - If failed.int cleanup(GridCacheContext cctx, @Nullable @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 @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 @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 mvccApplyHistoryIfAbsent(GridCacheContext cctx, KeyCacheObject key, List<GridCacheMvccEntryInfo> hist) throws IgniteCheckedException
cctx - Cache context.key - Key.hist - Full entry history.True if entry history applied successfully, False otherwise.IgniteCheckedExceptionboolean mvccUpdateRowWithPreloadInfo(GridCacheContext cctx, KeyCacheObject key, @Nullable @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 @Nullable CacheEntryPredicate filter, javax.cache.processor.EntryProcessor entryProc, Object[] invokeArgs, boolean primary, boolean needHist, boolean noCreate, boolean needOldVal, boolean retVal, boolean keepBinary) 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.keepBinary - Keep binary flag.IgniteCheckedException - If failed.MvccUpdateResult mvccRemove(GridCacheContext cctx, KeyCacheObject key, MvccSnapshot mvccSnapshot, @Nullable @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.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 markDestroyed()
throws IgniteCheckedException
IgniteCheckedExceptionvoid clear(int cacheId)
throws IgniteCheckedException
cacheId - Cache ID.IgniteCheckedException - If failed.RowStore rowStore()
void updateInitialCounter(long start,
long delta)
start - Counter.delta - Delta.void setRowCacheCleaner(GridQueryRowCacheCleaner rowCacheCleaner)
rowCacheCleaner - Rows cache cleaner.PendingEntriesTree pendingTree()
GridLongList finalizeUpdateCounters()
void preload()
throws IgniteCheckedException
IgniteCheckedException - If failed.void resetUpdateCounter()
void resetInitialUpdateCounter()
PartitionMetaStorage<SimpleDataRow> partStorage()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021