Class LinkMap
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap
-
public class LinkMap extends Object
Class that holds mappings of old links to new links.
-
-
Field Summary
Fields Modifier and Type Field Description static IOVersions<? extends BPlusInnerIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>>INNER_IO_VERSIONSstatic IOVersions<? extends BPlusLeafIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>>LEAF_IO_VERSIONSstatic intMETA_PAGE_IDXTree meta page index.
-
Constructor Summary
Constructors Constructor Description LinkMap(int grpId, String grpName, PageMemory pageMem, long metaPageId, boolean initNew, PageLockTrackerManager pageLockTrackerManager)LinkMap(CacheGroupContext ctx, PageMemory pageMem, long metaPageId, boolean initNew)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Frees the internal allocated resources.longget(long oldLink)Get new link by old link.voidput(long oldLink, long newLink)Add link mapping.
-
-
-
Field Detail
-
META_PAGE_IDX
public static final int META_PAGE_IDX
Tree meta page index.- See Also:
- Constant Field Values
-
LEAF_IO_VERSIONS
public static final IOVersions<? extends BPlusLeafIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>> LEAF_IO_VERSIONS
-
INNER_IO_VERSIONS
public static final IOVersions<? extends BPlusInnerIO<org.apache.ignite.internal.processors.cache.persistence.defragmentation.LinkMap.LinkMapping>> INNER_IO_VERSIONS
-
-
Constructor Detail
-
LinkMap
public LinkMap(CacheGroupContext ctx, PageMemory pageMem, long metaPageId, boolean initNew) throws IgniteCheckedException
- Parameters:
ctx- Cache group context.pageMem- Page memory.metaPageId- Meta page id.initNew- If tree should be (re)created.- Throws:
IgniteCheckedException
-
LinkMap
public LinkMap(int grpId, String grpName, PageMemory pageMem, long metaPageId, boolean initNew, PageLockTrackerManager pageLockTrackerManager) throws IgniteCheckedException- Parameters:
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.- Throws:
IgniteCheckedException
-
-
Method Detail
-
put
public void put(long oldLink, long newLink) throws IgniteCheckedExceptionAdd link mapping.- Parameters:
oldLink- Old link.newLink- New link.- Throws:
IgniteCheckedException
-
get
public long get(long oldLink) throws IgniteCheckedExceptionGet new link by old link.- Parameters:
oldLink- Old link.- Throws:
IgniteCheckedException
-
close
public void close()
Frees the internal allocated resources.
-
-