public AddressIndexableGenerator(KabcQueryable queryable, string kabc_file, Hashtable last_modified_table, bool initial_scan) { this.queryable = queryable; this.kabc_file = kabc_file; this.initial_scan = initial_scan; CheckContactHeader(); if (is_valid_file) { string_builder = new StringBuilder(); } this.last_modified_table = last_modified_table; lock (last_modified_table) { this.deleted_contacts = new Hashtable(last_modified_table.Count); foreach (string uid in last_modified_table.Keys) { this.deleted_contacts [uid] = true; } } // cache the last write time file_last_write_time = FileSystem.GetLastWriteTimeUtc(kabc_file); }
public AddressIndexableGenerator (KabcQueryable queryable, string kabc_file, Hashtable last_modified_table, bool initial_scan) { this.queryable = queryable; this.kabc_file = kabc_file; this.initial_scan = initial_scan; CheckContactHeader (); if (is_valid_file) string_builder = new StringBuilder (); this.last_modified_table = last_modified_table; lock (last_modified_table) { this.deleted_contacts = new Hashtable (last_modified_table.Count); foreach (string uid in last_modified_table.Keys) this.deleted_contacts [uid] = true; } // cache the last write time file_last_write_time = FileSystem.GetLastWriteTimeUtc (kabc_file); }