// --------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // --------------------------------------------------------------------------- // --------------------------------------------------------------------- // // // --------------------------------------------------------------------- namespace Microsoft.Database.Isam { using System; /// /// A secondary/primary key location that precisely identifies a given record /// public class Location { /// /// The index name /// private readonly string indexName; /// /// The primary bookmark /// private readonly byte[] primaryBookmark; /// /// The secondary bookmark /// private readonly byte[] secondaryBookmark; /// /// Initializes a new instance of the class. /// /// Name of the index. /// The primary bookmark. /// The secondary bookmark. internal Location(string indexName, byte[] primaryBookmark, byte[] secondaryBookmark) { this.indexName = indexName; this.primaryBookmark = primaryBookmark; this.secondaryBookmark = secondaryBookmark; } /// /// Gets the name of the index. /// /// /// The name of the index. /// internal string IndexName { get { return this.indexName; } } /// /// Gets the primary bookmark. /// /// /// The primary bookmark. /// internal byte[] PrimaryBookmark { get { return this.primaryBookmark; } } /// /// Gets the secondary bookmark. /// /// /// The secondary bookmark. /// internal byte[] SecondaryBookmark { get { return this.secondaryBookmark; } } } }