Class MetaPageUpdatePartitionDataRecord

    • 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:
        applyDelta in class PageDeltaRecord
        Parameters:
        pageMem - Page memory.
        pageAddr - Page address.
        Throws:
        IgniteCheckedException - If failed.
      • allocatedIndexCandidate

        public int allocatedIndexCandidate()
      • toBytes

        public void toBytes​(ByteBuffer buf)
        Parameters:
        buf - Buffer.