Beispiel #1
0
 internal Enumerator(FastDictionary <TValue> dictionary)
 {
     this.dictionary = dictionary;
     version         = dictionary.version;
     index           = 0;
     currentValue    = default(TValue);
 }
Beispiel #2
0
 public KeyCollection(FastDictionary <TValue> dictionary)
 {
     if (dictionary == null)
     {
         throw new ArgumentNullException("dictionary");
     }
     this.dictionary = dictionary;
 }
Beispiel #3
0
 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);
 }