public static StaticConcurrentFixedSizeHashTable <TKey, TValue> GetStaticConcurrentFixedSizeHashTable <TKey, TValue>(string filePathWithoutExtension, long capacity, Func <TKey, long> hashFunction, HashTableComparers <TKey, TValue> comparers = null) where TKey : unmanaged where TValue : unmanaged { var store = new StaticFixedSizeStore <TKey, TValue>(filePathWithoutExtension, capacity, hashFunction, comparers); return(store.GetConcurrentHashTable()); }
internal StaticFixedSizeStore(string filePathPathWithoutExtension, long capacity, Func <TKey, long> hashFunction, HashTableComparers <TKey, TValue> comparers = null) : base(filePathPathWithoutExtension, capacity, new BaseHashTableOptions <TKey, TValue> { HashFunction = hashFunction, KeyComparer = comparers?.KeyComparer ?? EqualityComparer <TKey> .Default, ValueComparer = comparers?.ValueComparer ?? EqualityComparer <TValue> .Default }) { }