public class LinkMap extends Object
| Modifier and Type | Field and Description |
|---|---|
static IOVersions<? extends BPlusInnerIO<?>> |
INNER_IO_VERSIONS |
static IOVersions<? extends BPlusLeafIO<?>> |
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) |
| Modifier and Type | Method and Description |
|---|---|
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<?>> LEAF_IO_VERSIONS
public static final IOVersions<? extends BPlusInnerIO<?>> 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)
throws IgniteCheckedException
grpId - Cache group id.grpName - Cache group name.pageMem - Page memory.metaPageId - Meta page id.initNew - If tree should be (re)created.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.IgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021