Class MetaPageUpdatePartitionDataRecordV3
- java.lang.Object
-
- org.apache.ignite.internal.pagemem.wal.record.WALRecord
-
- org.apache.ignite.internal.pagemem.wal.record.delta.PageDeltaRecord
-
- org.apache.ignite.internal.pagemem.wal.record.delta.MetaPageUpdatePartitionDataRecord
-
- org.apache.ignite.internal.pagemem.wal.record.delta.MetaPageUpdatePartitionDataRecordV2
-
- org.apache.ignite.internal.pagemem.wal.record.delta.MetaPageUpdatePartitionDataRecordV3
-
- All Implemented Interfaces:
WalRecordCacheGroupAware
public class MetaPageUpdatePartitionDataRecordV3 extends MetaPageUpdatePartitionDataRecordV2
Partition meta page delta record includes encryption status data.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ignite.internal.pagemem.wal.record.WALRecord
WALRecord.RecordPurpose, WALRecord.RecordType
-
-
Constructor Summary
Constructors Constructor Description MetaPageUpdatePartitionDataRecordV3(int grpId, long pageId, long updateCntr, long globalRmvId, int partSize, long cntrsPageId, byte state, int allocatedIdxCandidate, long link, int encryptedPageIdx, int encryptedPageCnt)MetaPageUpdatePartitionDataRecordV3(DataInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyDelta(PageMemory pageMem, long pageAddr)Apply changes from this delta to the given page.intencryptedPageCount()intencryptedPageIndex()voidtoBytes(ByteBuffer buf)StringtoString()WALRecord.RecordTypetype()-
Methods inherited from class org.apache.ignite.internal.pagemem.wal.record.delta.MetaPageUpdatePartitionDataRecordV2
link
-
Methods inherited from class org.apache.ignite.internal.pagemem.wal.record.delta.MetaPageUpdatePartitionDataRecord
allocatedIndexCandidate, countersPageId, globalRemoveId, partitionSize, state, updateCounter
-
Methods inherited from class org.apache.ignite.internal.pagemem.wal.record.delta.PageDeltaRecord
fullPageId, groupId, pageId
-
-
-
-
Constructor Detail
-
MetaPageUpdatePartitionDataRecordV3
public MetaPageUpdatePartitionDataRecordV3(int grpId, long pageId, long updateCntr, long globalRmvId, int partSize, long cntrsPageId, byte state, int allocatedIdxCandidate, long link, int encryptedPageIdx, int encryptedPageCnt)- Parameters:
grpId- Group id.pageId- Page id.updateCntr- Update counter.globalRmvId- Global remove id.partSize- Partition size.cntrsPageId- Cntrs page id.state- State.allocatedIdxCandidate- Allocated index candidate.link- Link.encryptedPageIdx- Index of the last reencrypted page.encryptedPageCnt- Total pages to be reencrypted.
-
MetaPageUpdatePartitionDataRecordV3
public MetaPageUpdatePartitionDataRecordV3(DataInput in) throws IOException
- Parameters:
in- Input.- Throws:
IOException
-
-
Method Detail
-
applyDelta
public void applyDelta(PageMemory pageMem, long pageAddr) throws IgniteCheckedException
Apply changes from this delta to the given page. It is assumed that the given buffer represents page state right before this update.- Overrides:
applyDeltain classMetaPageUpdatePartitionDataRecordV2- Parameters:
pageMem- Page memory.pageAddr- Page address.- Throws:
IgniteCheckedException- If failed.
-
encryptedPageIndex
public int encryptedPageIndex()
- Returns:
- Index of the last reencrypted page.
-
encryptedPageCount
public int encryptedPageCount()
- Returns:
- Total pages to be reencrypted.
-
toBytes
public void toBytes(ByteBuffer buf)
- Overrides:
toBytesin classMetaPageUpdatePartitionDataRecordV2- Parameters:
buf- Buffer.
-
type
public WALRecord.RecordType type()
- Overrides:
typein classMetaPageUpdatePartitionDataRecordV2- Returns:
- Entry type.
-
toString
public String toString()
- Overrides:
toStringin classMetaPageUpdatePartitionDataRecordV2
-
-