Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="IndexWriter"/> class.
        /// </summary>
        /// <param name="profile">The profile.</param>
        /// <exception cref="ArgumentNullException">profile</exception>
        protected IndexWriter(EmbixProfile profile)
        {
            Profile    = profile ?? throw new ArgumentNullException(nameof(profile));
            AutoNumber = new StandardAutoNumber();
            TokenIds   = new ConcurrentDictionary <Tuple <string, string>, int>();

            // setup the names
            RecordNames = new IndexRecordNames(
                new[] { "id", "value", "language" },
                GetOccurrenceFields());
        }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IndexRecord"/> class.
 /// </summary>
 /// <param name="names">The names.</param>
 /// <exception cref="ArgumentNullException">names</exception>
 public IndexRecord(IndexRecordNames names)
 {
     Names = names ?? throw new ArgumentNullException(nameof(names));
 }