internal Enumerator(FastDictionary <TValue> dictionary) { this.dictionary = dictionary; version = dictionary.version; index = 0; currentValue = default(TValue); }
public KeyCollection(FastDictionary <TValue> dictionary) { if (dictionary == null) { throw new ArgumentNullException("dictionary"); } this.dictionary = dictionary; }
internal Enumerator(FastDictionary <TValue> dictionary, int getEnumeratorRetType) { this.dictionary = dictionary; version = dictionary.version; index = 0; this.getEnumeratorRetType = getEnumeratorRetType; current = new KeyValuePair <char[], TValue>(); }
public WriteableIndex(IndexOptions options) : base(options) { _pool = ArrayPool <PostingEntry> .Create(300_000, 3_000); _store = new FastDictionary <PostingList>(389357); // prime number that should be large enough for our training data }
public ReadableIndex(IndexOptions options, int initialDocumentCapacity, int initialWordCapacity) : base(options, initialDocumentCapacity) { _store = new FastDictionary <List <PostingEntry> >(initialWordCapacity); }