class IncrementalSnapshotFinishRecord extends WALRecord {
    /** Incremental snapshot ID. */
    @GridToStringInclude
    private final UUID id;

    /**
     * Set of transactions committed between {@link IncrementalSnapshotStartRecord} and {@link IncrementalSnapshotFinishRecord}
     * to include into the incremental snapshot.
     */
    @GridToStringInclude
    private final Set<GridCacheVersion> included;

    /**
     * Set of transactions committed before {@link IncrementalSnapshotStartRecord} to exclude from the incremental snapshot.
     */
    @GridToStringInclude
    private final Set<GridCacheVersion> excluded;

    /** */
    public IncrementalSnapshotFinishRecord(UUID id, Set<GridCacheVersion> included, Set<GridCacheVersion> excluded) {
        this.id = id;
        this.included = included;
        this.excluded = excluded;
    }

    /** */
    public Set<GridCacheVersion> included() {
        return included;
    }

    /** */
    public Set<GridCacheVersion> excluded() {
        return excluded;
    }

    /** */
    public UUID id() {
        return id;
    }

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

    /**
     * Calculating the size of the record.
     *
     * @return Size in bytes.
     */
    public int dataSize() {<FILL_FUNCTION_BODY>}

    /** {@inheritDoc} */
    @Override public String toString() {
        return S.toString(IncrementalSnapshotFinishRecord.class, this);
    }
}

        int size = 16 + 4 + 4;  // ID, included and excluded tx count.

        for (GridCacheVersion v: included)
            size += CacheVersionIO.size(v, false);

        for (GridCacheVersion v: excluded)
            size += CacheVersionIO.size(v, false);

        return size;
    
<methods>public non-sealed void <init>() ,public void chainSize(int) ,public int chainSize() ,public org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer position() ,public void position(org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer) ,public org.apache.ignite.internal.pagemem.wal.record.WALRecord previous() ,public void previous(org.apache.ignite.internal.pagemem.wal.record.WALRecord) ,public int size() ,public void size(int) ,public java.lang.String toString() ,public abstract org.apache.ignite.internal.pagemem.wal.record.WALRecord.RecordType type() <variables>private int chainSize,private org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer pos,private org.apache.ignite.internal.pagemem.wal.record.WALRecord prev,private int size