Class PagePartitionMetaIOV3
- 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
-
- org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIOV3
-
public class PagePartitionMetaIOV3 extends PagePartitionMetaIOV2
IO for partition metadata pages.
-
-
Field Summary
Fields Modifier and Type Field Description protected static intENCRYPT_PAGE_MAX_OFFTotal pages to be reencrypted offset.-
Fields inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIOV2
GAPS_LINK, PART_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 PagePartitionMetaIOV3(int ver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEncryptedPageCount(long pageAddr)intgetEncryptedPageIndex(long pageAddr)voidinitNewPage(long pageAddr, long pageId, int pageSize, PageMetrics metrics)protected voidprintFields(long pageAddr, GridStringBuilder sb)booleansetEncryptedPageCount(long pageAddr, int pagesCnt)booleansetEncryptedPageIndex(long pageAddr, int pageIdx)voidupgradePage(long pageAddr)Upgrade page to PagePartitionMetaIOV3.-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIOV2
getGapsLink, getPartitionMetaStoreReuseListRoot, getPendingTreeRoot, setGapsLink, setPartitionMetaStoreReuseListRoot, setPendingTreeRoot
-
Methods inherited from class org.apache.ignite.internal.processors.cache.persistence.tree.io.PagePartitionMetaIO
getCountersPageId, getGlobalRemoveId, getPartitionState, getSize, getUpdateCounter, printPage, setCountersPageId, 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
-
ENCRYPT_PAGE_MAX_OFF
protected static final int ENCRYPT_PAGE_MAX_OFF
Total pages to be reencrypted offset.- See Also:
- Constant Field Values
-
-
Method Detail
-
initNewPage
public void initNewPage(long pageAddr, long pageId, int pageSize, PageMetrics metrics)- Overrides:
initNewPagein classPagePartitionMetaIOV2- 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)
-
getEncryptedPageIndex
public int getEncryptedPageIndex(long pageAddr)
- Overrides:
getEncryptedPageIndexin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.- Returns:
- Index of the last reencrypted page.
-
setEncryptedPageIndex
public boolean setEncryptedPageIndex(long pageAddr, int pageIdx)- Overrides:
setEncryptedPageIndexin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.pageIdx- Index of the last reencrypted page.- Returns:
trueif value has changed as a result of this method's invocation.
-
getEncryptedPageCount
public int getEncryptedPageCount(long pageAddr)
- Overrides:
getEncryptedPageCountin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.- Returns:
- Total pages to be reencrypted.
-
setEncryptedPageCount
public boolean setEncryptedPageCount(long pageAddr, int pagesCnt)- Overrides:
setEncryptedPageCountin classPagePartitionMetaIO- Parameters:
pageAddr- Page address.pagesCnt- Total pages to be reencrypted.- Returns:
trueif value has changed as a result of this method's invocation.
-
printFields
protected void printFields(long pageAddr, GridStringBuilder sb)- Overrides:
printFieldsin classPagePartitionMetaIOV2- Parameters:
pageAddr- Address.sb- String builder.
-
upgradePage
public void upgradePage(long pageAddr)
Upgrade page to PagePartitionMetaIOV3.- Overrides:
upgradePagein classPagePartitionMetaIOV2- Parameters:
pageAddr- Page address.
-
-