class MergeRecord<L> extends PageDeltaRecord {
    /** */
    @GridToStringExclude
    private long prntId;

    /** */
    @GridToStringExclude
    private long rightId;

    /** */
    private int prntIdx;

    /** */
    private boolean emptyBranch;

    /**
     * @param grpId Cache group ID.
     * @param pageId  Page ID.
     * @param prntId Parent ID.
     * @param prntIdx Index in parent page.
     * @param rightId Right ID.
     * @param emptyBranch We are merging empty branch.
     */
    public MergeRecord(int grpId, long pageId, long prntId, int prntIdx, long rightId, boolean emptyBranch) {
        super(grpId, pageId);

        this.prntId = prntId;
        this.rightId = rightId;
        this.prntIdx = prntIdx;
        this.emptyBranch = emptyBranch;

        throw new IgniteException("Merge record should not be used directly (see GG-11640). " +
            "Clear the database directory and restart the node.");
    }

    /** {@inheritDoc} */
    @Override public void applyDelta(PageMemory pageMem, long pageAddr) throws IgniteCheckedException {
        throw new IgniteCheckedException("Merge record should not be logged.");
    }

    /** {@inheritDoc} */
    @Override public RecordType type() {
        return RecordType.BTREE_PAGE_MERGE;
    }

    /** */
    public long parentId() {
        return prntId;
    }

    /** */
    public int parentIndex() {
        return prntIdx;
    }

    /** */
    public long rightId() {
        return rightId;
    }

    /** */
    public boolean isEmptyBranch() {
        return emptyBranch;
    }

    /** {@inheritDoc} */
    @Override public String toString() {<FILL_FUNCTION_BODY>}
}

        return S.toString(MergeRecord.class, this, "prntId", U.hexLong(prntId), "rightId", U.hexLong(rightId),
            "super", super.toString());
    
<methods>public abstract void applyDelta(org.apache.ignite.internal.pagemem.PageMemory, long) throws org.apache.ignite.IgniteCheckedException,public org.apache.ignite.internal.pagemem.FullPageId fullPageId() ,public int groupId() ,public long pageId() ,public java.lang.String toString() <variables>private int grpId,private long pageId