Class MetaPageUpdatePartitionDataRecord
- 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
-
- All Implemented Interfaces:
WalRecordCacheGroupAware
- Direct Known Subclasses:
MetaPageUpdatePartitionDataRecordV2
public class MetaPageUpdatePartitionDataRecord extends PageDeltaRecord
-
-
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 MetaPageUpdatePartitionDataRecord(int grpId, long pageId, long updateCntr, long globalRmvId, int partSize, long cntrsPageId, byte state, int allocatedIdxCandidate)MetaPageUpdatePartitionDataRecord(DataInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intallocatedIndexCandidate()voidapplyDelta(PageMemory pageMem, long pageAddr)Apply changes from this delta to the given page.longcountersPageId()longglobalRemoveId()intpartitionSize()bytestate()voidtoBytes(ByteBuffer buf)StringtoString()WALRecord.RecordTypetype()longupdateCounter()-
Methods inherited from class org.apache.ignite.internal.pagemem.wal.record.delta.PageDeltaRecord
fullPageId, groupId, pageId
-
-
-
-
Constructor Detail
-
MetaPageUpdatePartitionDataRecord
public MetaPageUpdatePartitionDataRecord(int grpId, long pageId, long updateCntr, long globalRmvId, int partSize, long cntrsPageId, byte state, int allocatedIdxCandidate)- Parameters:
grpId- Cache group ID.pageId- Page ID.allocatedIdxCandidate- Page Allocated index candidate
-
MetaPageUpdatePartitionDataRecord
public MetaPageUpdatePartitionDataRecord(DataInput in) throws IOException
- Parameters:
in- Input.- Throws:
IOException
-
-
Method Detail
-
updateCounter
public long updateCounter()
- Returns:
- Update counter.
-
globalRemoveId
public long globalRemoveId()
- Returns:
- Global remove ID.
-
partitionSize
public int partitionSize()
- Returns:
- Partition size.
-
countersPageId
public long countersPageId()
- Returns:
- Partition size.
-
state
public byte state()
- Returns:
- Partition state
-
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.- Specified by:
applyDeltain classPageDeltaRecord- Parameters:
pageMem- Page memory.pageAddr- Page address.- Throws:
IgniteCheckedException- If failed.
-
allocatedIndexCandidate
public int allocatedIndexCandidate()
-
toBytes
public void toBytes(ByteBuffer buf)
- Parameters:
buf- Buffer.
-
type
public WALRecord.RecordType type()
-
toString
public String toString()
- Overrides:
toStringin classPageDeltaRecord
-
-