public interface IgniteCacheOffheapManager
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IgniteCacheOffheapManager.CacheDataStore |
static interface |
IgniteCacheOffheapManager.OffheapInvokeClosure |
| Modifier and Type | Method and Description |
|---|---|
Iterable<IgniteCacheOffheapManager.CacheDataStore> |
cacheDataStores() |
long |
cacheEntriesCount(int cacheId) |
long |
cacheEntriesCount(int cacheId,
boolean primary,
boolean backup,
AffinityTopologyVersion topVer) |
long |
cacheEntriesCount(int cacheId,
int part) |
<K,V> GridCloseableIterator<javax.cache.Cache.Entry<K,V>> |
cacheEntriesIterator(GridCacheContext cctx,
boolean primary,
boolean backup,
AffinityTopologyVersion topVer,
boolean keepBinary,
@Nullable MvccSnapshot mvccSnapshot,
Boolean dataPageScanEnabled) |
GridIterator<CacheDataRow> |
cacheIterator(int cacheId,
boolean primary,
boolean backup,
AffinityTopologyVersion topVer,
@Nullable MvccSnapshot mvccSnapshot,
Boolean dataPageScanEnabled) |
GridCloseableIterator<KeyCacheObject> |
cacheKeysIterator(int cacheId,
int part) |
GridIterator<CacheDataRow> |
cachePartitionIterator(int cacheId,
int part,
@Nullable MvccSnapshot mvccSnapshot,
Boolean dataPageScanEnabled) |
void |
clearCache(GridCacheContext cctx,
boolean readers)
Clears offheap entries.
|
void |
confirmPartitionStatesRestored()
Confirm that partition states are restored.
|
boolean |
containsKey(GridCacheMapEntry entry)
TODO: GG-10884, used on only from initialValue.
|
IgniteCacheOffheapManager.CacheDataStore |
createCacheDataStore(int p) |
IgniteCacheOffheapManager.CacheDataStore |
dataStore(@Nullable GridDhtLocalPartition part) |
void |
destroyCacheDataStore(IgniteCacheOffheapManager.CacheDataStore store) |
@Nullable RootPage |
dropRootPageForIndex(int cacheId,
String idxName,
int segment)
Dropping the root page of the index tree.
|
boolean |
expire(GridCacheContext cctx,
IgniteInClosure2X<GridCacheEntryEx,GridCacheVersion> c,
int amount) |
long |
expiredSize()
Gets the number of entries pending expire.
|
@Nullable RootPage |
findRootPageForIndex(int cacheId,
String idxName,
int segment) |
GridAtomicLong |
globalRemoveId() |
void |
invoke(GridCacheContext cctx,
KeyCacheObject key,
GridDhtLocalPartition part,
IgniteCacheOffheapManager.OffheapInvokeClosure c) |
List<IgniteBiTuple<Object,MvccVersion>> |
mvccAllVersions(GridCacheContext cctx,
KeyCacheObject key)
For testing only.
|
GridCursor<CacheDataRow> |
mvccAllVersionsCursor(GridCacheContext cctx,
KeyCacheObject key,
Object x)
Returns iterator over the all row versions for the given key.
|
boolean |
mvccApplyHistoryIfAbsent(GridCacheMapEntry entry,
List<GridCacheMvccEntryInfo> hist)
Tries to apply entry history.
|
void |
mvccApplyUpdate(GridCacheContext cctx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime,
GridDhtLocalPartition part,
MvccVersion mvccVer) |
boolean |
mvccInitialValue(GridCacheMapEntry entry,
@Nullable CacheObject val,
GridCacheVersion ver,
long expireTime,
MvccVersion mvccVer,
MvccVersion newMvccVer) |
@Nullable MvccUpdateResult |
mvccLock(GridCacheMapEntry entry,
MvccSnapshot mvccSnapshot) |
@Nullable CacheDataRow |
mvccRead(GridCacheContext cctx,
KeyCacheObject key,
MvccSnapshot mvccSnapshot) |
@Nullable MvccUpdateResult |
mvccRemove(GridCacheMapEntry entry,
MvccSnapshot mvccSnapshot,
boolean primary,
boolean needHist,
boolean needOldVal,
@Nullable CacheEntryPredicate filter,
boolean retVal) |
void |
mvccRemoveAll(GridCacheMapEntry entry) |
MvccUpdateResult |
mvccUpdate(GridCacheMapEntry entry,
CacheObject val,
GridCacheVersion ver,
long expireTime,
MvccSnapshot mvccSnapshot,
boolean primary,
boolean needHist,
boolean noCreate,
boolean needOldVal,
@Nullable CacheEntryPredicate filter,
boolean retVal,
boolean keepBinary,
javax.cache.processor.EntryProcessor entryProc,
Object[] invokeArgs) |
boolean |
mvccUpdateRowWithPreloadInfo(GridCacheMapEntry entry,
@Nullable CacheObject val,
GridCacheVersion ver,
long expireTime,
MvccVersion mvccVer,
MvccVersion newMvccVer,
byte mvccTxState,
byte newMvccTxState)
Apply update with full history.
|
long |
offHeapAllocatedSize() |
void |
onCacheStarted(GridCacheContext cctx) |
void |
onKernalStop()
Callback on node stop.
|
int |
onUndeploy(ClassLoader ldr) |
GridIterator<CacheDataRow> |
partitionIterator(int part) |
void |
preloadPartition(int pardId)
Preload a partition.
|
void |
prepareToStop()
Prepare cache group to stop (due to cache destroy or cluster deactivate).
|
@Nullable CacheDataRow |
read(GridCacheContext cctx,
KeyCacheObject key) |
@Nullable CacheDataRow |
read(GridCacheMapEntry entry) |
IgniteRebalanceIterator |
rebalanceIterator(IgniteDhtDemandedPartitionsMap parts,
AffinityTopologyVersion topVer) |
void |
remove(GridCacheContext cctx,
KeyCacheObject key,
int partId,
GridDhtLocalPartition part) |
@Nullable RootPage |
renameRootPageForIndex(int cacheId,
String oldIdxName,
String newIdxName,
int segment)
Renaming the root page of the index tree.
|
GridCloseableIterator<CacheDataRow> |
reservedIterator(int part,
AffinityTopologyVersion topVer) |
void |
restorePartitionStates()
Pre-create partitions that resides in page memory or WAL and restores their state.
|
long |
restoreStateOfPartition(int p,
@Nullable Integer recoveryState)
Pre-create single partition that resides in page memory or WAL and restores their state.
|
ReuseList |
reuseListForIndex(String idxName) |
RootPage |
rootPageForIndex(int cacheId,
String idxName,
int segment) |
void |
start(GridCacheSharedContext ctx,
CacheGroupContext grp) |
void |
stop()
Stop cache group (due to cache destroy or cluster deactivate).
|
void |
stopCache(int cacheId,
boolean destroy) |
void |
storeEntries(GridDhtLocalPartition part,
Iterator<GridCacheEntryInfo> infos,
IgnitePredicateX<CacheDataRow> initPred)
Store entries.
|
void |
update(GridCacheContext cctx,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
long expireTime,
GridDhtLocalPartition part,
@Nullable CacheDataRow oldRow) |
void start(GridCacheSharedContext ctx, CacheGroupContext grp) throws IgniteCheckedException
ctx - Context.grp - Cache group.IgniteCheckedException - If failed.void onCacheStarted(GridCacheContext cctx) throws IgniteCheckedException
cctx - Cache context.IgniteCheckedException - If failed.void onKernalStop()
void stopCache(int cacheId,
boolean destroy)
cacheId - Cache ID.destroy - Destroy data flag. Setting to true will remove all cache data.void prepareToStop()
void stop()
long restoreStateOfPartition(int p,
@Nullable
@Nullable Integer recoveryState)
throws IgniteCheckedException
p - Partition id.recoveryState - Partition recovery state.IgniteCheckedException - If failed.void restorePartitionStates()
throws IgniteCheckedException
IgniteCheckedException - If failed.void confirmPartitionStatesRestored()
restoreStateOfPartition(int, Integer).@Nullable @Nullable CacheDataRow read(GridCacheMapEntry entry) throws IgniteCheckedException
entry - Cache entry.IgniteCheckedException - If failed.@Nullable @Nullable CacheDataRow read(GridCacheContext cctx, KeyCacheObject key) throws IgniteCheckedException
cctx - Cache context.key - Key.IgniteCheckedException - If failed.IgniteCacheOffheapManager.CacheDataStore createCacheDataStore(int p) throws IgniteCheckedException
p - Partition.IgniteCheckedException - If failed.Iterable<IgniteCacheOffheapManager.CacheDataStore> cacheDataStores()
IgniteCacheOffheapManager.CacheDataStore dataStore(@Nullable @Nullable GridDhtLocalPartition part)
part - Local partition or null if a related cache group is LOCAL.void destroyCacheDataStore(IgniteCacheOffheapManager.CacheDataStore store) throws IgniteCheckedException
store - Data store.IgniteCheckedException - If failed.boolean containsKey(GridCacheMapEntry entry)
boolean expire(GridCacheContext cctx, IgniteInClosure2X<GridCacheEntryEx,GridCacheVersion> c, int amount) throws IgniteCheckedException
cctx - Cache context.c - Closure.amount - Limit of processed entries by single call, -1 for no limit.True if unprocessed expired entries remains.IgniteCheckedException - If failed.long expiredSize()
throws IgniteCheckedException
IgniteCheckedException - If failed to get number of pending entries.void invoke(GridCacheContext cctx, KeyCacheObject key, GridDhtLocalPartition part, IgniteCacheOffheapManager.OffheapInvokeClosure c) throws IgniteCheckedException
cctx - Cache context.key - Key.part - Partition.c - Tree update closure.IgniteCheckedException - If failed.@Nullable @Nullable CacheDataRow mvccRead(GridCacheContext cctx, KeyCacheObject key, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
cctx - Cache context.key - Key.mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.List<IgniteBiTuple<Object,MvccVersion>> mvccAllVersions(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.boolean mvccInitialValue(GridCacheMapEntry entry, @Nullable @Nullable CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer, MvccVersion newMvccVer) throws IgniteCheckedException
entry - Entry.val - Value.ver - Version.expireTime - Expire time.mvccVer - MVCC version.newMvccVer - New MVCC version.True if value was inserted.IgniteCheckedException - If failed.boolean mvccApplyHistoryIfAbsent(GridCacheMapEntry entry, List<GridCacheMvccEntryInfo> hist) throws IgniteCheckedException
entry - Entry to update.hist - Full entry history.True if history applied successfully, False otherwise.IgniteCheckedExceptionMvccUpdateResult mvccUpdate(GridCacheMapEntry entry, CacheObject val, GridCacheVersion ver, long expireTime, MvccSnapshot mvccSnapshot, boolean primary, boolean needHist, boolean noCreate, boolean needOldVal, @Nullable @Nullable CacheEntryPredicate filter, boolean retVal, boolean keepBinary, javax.cache.processor.EntryProcessor entryProc, Object[] invokeArgs) throws IgniteCheckedException
entry - Entry.val - Value.ver - Cache version.expireTime - Expire time.mvccSnapshot - MVCC snapshot.primary - True if 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.filter - Filter.retVal - Flag to return previous value.keepBinary - Keep binary flag.entryProc - Entry processor.invokeArgs - Entry processor invoke arguments.IgniteCheckedException - If failed.@Nullable @Nullable MvccUpdateResult mvccRemove(GridCacheMapEntry entry, MvccSnapshot mvccSnapshot, boolean primary, boolean needHist, boolean needOldVal, @Nullable @Nullable CacheEntryPredicate filter, boolean retVal) throws IgniteCheckedException
entry - Entry.mvccSnapshot - MVCC snapshot.primary - True if on primary node.needHist - Flag to collect history.needOldVal - True if need old value.filter - Filter.retVal - Flag to return previous value.IgniteCheckedException - If failed.@Nullable @Nullable MvccUpdateResult mvccLock(GridCacheMapEntry entry, MvccSnapshot mvccSnapshot) throws IgniteCheckedException
entry - Entry.mvccSnapshot - MVCC snapshot.IgniteCheckedException - If failed.boolean mvccUpdateRowWithPreloadInfo(GridCacheMapEntry entry, @Nullable @Nullable CacheObject val, GridCacheVersion ver, long expireTime, MvccVersion mvccVer, MvccVersion newMvccVer, byte mvccTxState, byte newMvccTxState) throws IgniteCheckedException
entry - Entry.val - Value.ver - Version.mvccVer - MVCC version.newMvccVer - New MVCC version.True if value was inserted.IgniteCheckedException - If failed.void mvccRemoveAll(GridCacheMapEntry entry) throws IgniteCheckedException
entry - Entry.IgniteCheckedException - If failed.void update(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, GridDhtLocalPartition part, @Nullable @Nullable CacheDataRow oldRow) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.oldRow - Old row if available.part - Partition.IgniteCheckedException - If failed.void mvccApplyUpdate(GridCacheContext cctx, KeyCacheObject key, CacheObject val, GridCacheVersion ver, long expireTime, GridDhtLocalPartition part, MvccVersion mvccVer) throws IgniteCheckedException
cctx - Cache context.key - Key.val - Value.ver - Version.expireTime - Expire time.part - Partition.mvccVer - Mvcc version.IgniteCheckedException - If failed.void remove(GridCacheContext cctx, KeyCacheObject key, int partId, GridDhtLocalPartition part) throws IgniteCheckedException
cctx - Cache context.key - Key.partId - Partition number.part - Partition.IgniteCheckedException - If failed.int onUndeploy(ClassLoader ldr)
ldr - Class loader.GridIterator<CacheDataRow> cacheIterator(int cacheId, boolean primary, boolean backup, AffinityTopologyVersion topVer, @Nullable @Nullable MvccSnapshot mvccSnapshot, Boolean dataPageScanEnabled) throws IgniteCheckedException
cacheId - Cache ID.primary - Primary entries flag.backup - Backup entries flag.topVer - Topology version.mvccSnapshot - MVCC snapshot.dataPageScanEnabled - Flag to enable data page scan.IgniteCheckedException - If failed.GridIterator<CacheDataRow> cachePartitionIterator(int cacheId, int part, @Nullable @Nullable MvccSnapshot mvccSnapshot, Boolean dataPageScanEnabled) throws IgniteCheckedException
cacheId - Cache ID.part - Partition.mvccSnapshot - MVCC snapshot.dataPageScanEnabled - Flag to enable data page scan.IgniteCheckedException - If failed.GridIterator<CacheDataRow> partitionIterator(int part) throws IgniteCheckedException
part - Partition number.IgniteCheckedException - If failed.GridCloseableIterator<CacheDataRow> reservedIterator(int part, AffinityTopologyVersion topVer) throws IgniteCheckedException
part - Partition number.topVer - Topology version.IgniteCheckedException - If failed.IgniteRebalanceIterator rebalanceIterator(IgniteDhtDemandedPartitionsMap parts, AffinityTopologyVersion topVer) throws IgniteCheckedException
parts - Partitions.IgniteCheckedException - If failed.<K,V> GridCloseableIterator<javax.cache.Cache.Entry<K,V>> cacheEntriesIterator(GridCacheContext cctx, boolean primary, boolean backup, AffinityTopologyVersion topVer, boolean keepBinary, @Nullable @Nullable MvccSnapshot mvccSnapshot, Boolean dataPageScanEnabled) throws IgniteCheckedException
cctx - Cache context.primary - True if need to return primary entries.backup - True if need to return backup entries.topVer - Topology version.keepBinary - Keep binary flag.mvccSnapshot - MVCC snapshot.dataPageScanEnabled - Flag to enable data page scan.IgniteCheckedException - If failed.GridCloseableIterator<KeyCacheObject> cacheKeysIterator(int cacheId, int part) throws IgniteCheckedException
cacheId - Cache ID.part - Partition.IgniteCheckedException - If failed.long cacheEntriesCount(int cacheId,
boolean primary,
boolean backup,
AffinityTopologyVersion topVer)
cacheId - Cache ID.primary - Primary entries flag.backup - Backup entries flag.topVer - Topology version.void storeEntries(GridDhtLocalPartition part, Iterator<GridCacheEntryInfo> infos, IgnitePredicateX<CacheDataRow> initPred) throws IgniteCheckedException
part - Local partition.infos - Entry infos.initPred - Applied to all created rows. Each row that not matches the predicate is removed.IgniteCheckedException - If failed.void clearCache(GridCacheContext cctx, boolean readers)
cctx - Cache context.readers - True to clear readers.long cacheEntriesCount(int cacheId,
int part)
cacheId - Cache ID.part - Partition.long offHeapAllocatedSize()
GridAtomicLong globalRemoveId()
RootPage rootPageForIndex(int cacheId, String idxName, int segment) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.segment - Segment.IgniteCheckedException - If failed.@Nullable @Nullable RootPage findRootPageForIndex(int cacheId, String idxName, int segment) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.IgniteCheckedException - If failed.@Nullable @Nullable RootPage dropRootPageForIndex(int cacheId, String idxName, int segment) throws IgniteCheckedException
cacheId - Cache ID.idxName - Index name.segment - Segment index.IgniteCheckedException - If failed.@Nullable @Nullable RootPage renameRootPageForIndex(int cacheId, String oldIdxName, String newIdxName, int segment) throws IgniteCheckedException
cacheId - Cache id.oldIdxName - Old name of the index tree.newIdxName - New name of the index tree.segment - Segment index.IgniteCheckedException - If failed.ReuseList reuseListForIndex(String idxName) throws IgniteCheckedException
idxName - Index name.IgniteCheckedException - If failed.long cacheEntriesCount(int cacheId)
cacheId - Cache ID.void preloadPartition(int pardId)
throws IgniteCheckedException
pardId - Partition id.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023