using ZB.MOM.WW.CBDD.Core.Indexing;

namespace ZB.MOM.WW.CBDD.Core.Indexing;

public struct InternalEntry
{
    /// <summary>
    /// Gets or sets the separator key.
    /// </summary>
    public IndexKey Key { get; set; }

    /// <summary>
    /// Gets or sets the child page identifier.
    /// </summary>
    public uint PageId { get; set; }

    /// <summary>
    /// Initializes a new instance of the <see cref="InternalEntry"/> struct.
    /// </summary>
    /// <param name="key">The separator key.</param>
    /// <param name="pageId">The child page identifier.</param>
    public InternalEntry(IndexKey key, uint pageId)
    {
        Key = key;
        PageId = pageId;
    }
}
