public class LinkMap extends Object
| Modifier and Type | Field and Description |
|---|---|
static IOVersions<? extends BPlusInnerIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>> |
INNER_IO_VERSIONS |
static IOVersions<? extends BPlusLeafIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>> |
LEAF_IO_VERSIONS |
static int |
META_PAGE_IDX
Tree meta page index.
|
| Constructor and Description |
|---|
LinkMap(CacheGroupContext ctx,
PageMemory pageMem,
long metaPageId,
boolean initNew) |
LinkMap(int grpId,
String grpName,
PageMemory pageMem,
long metaPageId,
boolean initNew,
PageLockTrackerManager pageLockTrackerManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Frees the internal allocated resources.
|
long |
get(long oldLink)
Get new link by old link.
|
void |
put(long oldLink,
long newLink)
Add link mapping.
|
public static final int META_PAGE_IDX
public static final IOVersions<? extends BPlusLeafIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>> LEAF_IO_VERSIONS
public static final IOVersions<? extends BPlusInnerIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>> INNER_IO_VERSIONS
public LinkMap(CacheGroupContext ctx, PageMemory pageMem, long metaPageId, boolean initNew) throws IgniteCheckedException
ctx - Cache group context.pageMem - Page memory.metaPageId - Meta page id.initNew - If tree should be (re)created.IgniteCheckedExceptionpublic LinkMap(int grpId,
String grpName,
PageMemory pageMem,
long metaPageId,
boolean initNew,
PageLockTrackerManager pageLockTrackerManager)
throws IgniteCheckedException
grpId - Cache group id.grpName - Cache group name.pageMem - Page memory.metaPageId - Meta page id.initNew - If tree should be (re)created.pageLockTrackerManager - Page lock tracker manager.IgniteCheckedExceptionpublic void put(long oldLink,
long newLink)
throws IgniteCheckedException
oldLink - Old link.newLink - New link.IgniteCheckedExceptionpublic long get(long oldLink)
throws IgniteCheckedException
oldLink - Old link.IgniteCheckedExceptionpublic void close()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023