Class PagePartitionMetaIOV2
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.persistence.tree.io.PageIO
-
- org.apache.ignite.internal.processors.cache.persistence.tree.io.PageMetaIO
-
- org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIO
-
- org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIOV2
-
- Direct Known Subclasses:
PagePartitionMetaIOV3
public class PagePartitionMetaIOV2 extends PagePartitionMetaIO
IO for partition metadata pages. Persistent partition contains it's own PendingTree.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intGAPS_LINKstatic intPART_META_REUSE_LIST_ROOT_OFF-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIO
VERSIONS
-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PageIO
COMMON_HEADER_END, CRC_OFF, MAX_PAYLOAD_SIZE, PAGE_ID_OFF, ROTATED_ID_PART_OFF, T_BPLUS_META, T_CACHE_ID_AWARE_DATA_REF_INNER, T_CACHE_ID_AWARE_DATA_REF_LEAF, T_CACHE_ID_AWARE_PENDING_REF_INNER, T_CACHE_ID_AWARE_PENDING_REF_LEAF, T_DATA, T_DATA_METASTORAGE, T_DATA_PART, T_DATA_REF_INNER, T_DATA_REF_LEAF, T_DATA_REF_METASTORAGE_INNER, T_DATA_REF_METASTORAGE_LEAF, T_DEFRAG_LINK_MAPPING_INNER, T_DEFRAG_LINK_MAPPING_LEAF, T_H2_EX_REF_INNER_END, T_H2_EX_REF_INNER_START, T_H2_EX_REF_LEAF_END, T_H2_EX_REF_LEAF_START, T_H2_REF_INNER, T_H2_REF_LEAF, T_MARKER_PAGE, T_META, T_METASTORE_INNER, T_METASTORE_LEAF, T_PAGE_LIST_META, T_PAGE_LIST_NODE, T_PAGE_UPDATE_TRACKING, T_PART_CNTRS, T_PART_META, T_PENDING_REF_INNER, T_PENDING_REF_LEAF, TYPE_OFF, VER_OFF
-
-
Constructor Summary
Constructors Constructor Description PagePartitionMetaIOV2(int ver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetGapsLink(long pageAddr)longgetPartitionMetaStoreReuseListRoot(long pageAddr)longgetPendingTreeRoot(long pageAddr)Returns partition pending tree root.voidinitNewPage(long pageAddr, long pageId, int pageSize, PageMetrics metrics)protected voidprintFields(long pageAddr, GridStringBuilder sb)booleansetGapsLink(long pageAddr, long link)voidsetPartitionMetaStoreReuseListRoot(long pageAddr, long listRoot)voidsetPendingTreeRoot(long pageAddr, long listRoot)Sets new partition pending tree root.voidupgradePage(long pageAddr)Upgrade page to PagePartitionMetaIOV2-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIO
getCountersPageId, getEncryptedPageCount, getEncryptedPageIndex, getGlobalRemoveId, getPartitionState, getSize, getUpdateCounter, printPage, setCountersPageId, setEncryptedPageCount, setEncryptedPageIndex, setGlobalRemoveId, setPartitionState, setSize, setUpdateCounter
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PageMetaIO
getCandidatePageCount, getFreeSpace, getLastAllocatedPageCount, getLastAllocatedPageCount, getLastSuccessfulFullSnapshotId, getLastSuccessfulSnapshotId, getLastSuccessfulSnapshotTag, getNextSnapshotTag, getReuseListRoot, getTreeRoot, setCandidatePageCount, setLastAllocatedPageCount, setLastSuccessfulFullSnapshotId, setLastSuccessfulSnapshotId, setLastSuccessfulSnapshotTag, setNextSnapshotTag, setReuseListRoot, setTreeRoot
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PageIO
assertPageType, assertPageType, copyPage, deriveIndexPageType, getBPlusIO, getBPlusIO, getCompactedSize, getCompactedSize, getCompressedSize, getCompressedSize, getCompressionType, getCompressionType, getCrc, getCrc, getInnerVersions, getLeafVersions, getPageId, getPageId, getPageIO, getPageIO, getPageIO, getRotatedIdPart, getType, getType, getType, getVersion, getVersion, getVersion, isDataPageType, isIndexPage, printPage, registerH2, registerH2ExtraInner, registerH2ExtraLeaf, registerTest, registerTest, setCompactedSize, setCompressedSize, setCompressionType, setCrc, setCrc, setPageId, setRotatedIdPart, setType, setVersion, toString
-
-
-
-
Field Detail
-
PART_META_REUSE_LIST_ROOT_OFF
public static final int PART_META_REUSE_LIST_ROOT_OFF
- See Also:
- Constant Field Values
-
GAPS_LINK
protected static final int GAPS_LINK
- See Also:
- Constant Field Values
-
-
Method Detail
-
initNewPage
public void initNewPage(long pageAddr, long pageId, int pageSize, PageMetrics metrics)- Overrides:
initNewPagein classPagePartitionMetaIO- Parameters:
pageAddr- Page address.pageId- Page ID.pageSize- Page size.metrics- Page metrics for tracking page allocation. Can benullif no tracking is required.- See Also:
EncryptionSpi.encryptedSize(int)
-
getPendingTreeRoot
public long getPendingTreeRoot(long pageAddr)
Returns partition pending tree root. Pending tree is used to tracking expiring entries.- Overrides:
getPendingTreeRootin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.- Returns:
- Pending Tree root page.
-
setPendingTreeRoot
public void setPendingTreeRoot(long pageAddr, long listRoot)Sets new partition pending tree root.- Overrides:
setPendingTreeRootin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.listRoot- Pending Tree root
-
getPartitionMetaStoreReuseListRoot
public long getPartitionMetaStoreReuseListRoot(long pageAddr)
- Overrides:
getPartitionMetaStoreReuseListRootin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.
-
setPartitionMetaStoreReuseListRoot
public void setPartitionMetaStoreReuseListRoot(long pageAddr, long listRoot)- Overrides:
setPartitionMetaStoreReuseListRootin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.listRoot- List root.
-
getGapsLink
public long getGapsLink(long pageAddr)
- Overrides:
getGapsLinkin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.- Returns:
- Partition size.
-
setGapsLink
public boolean setGapsLink(long pageAddr, long link)- Overrides:
setGapsLinkin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.link- Link.- Returns:
trueif value has changed as a result of this method's invocation.
-
printFields
protected void printFields(long pageAddr, GridStringBuilder sb)- Overrides:
printFieldsin classPagePartitionMetaIO- Parameters:
pageAddr- Address.sb- String builder.
-
upgradePage
public void upgradePage(long pageAddr)
Upgrade page to PagePartitionMetaIOV2- Parameters:
pageAddr- Page address.
-
-