Exemplo n.º 1
0
 internal void CreateSyllableBuckets()
 {
     if (_syllableBuckets != null)
     {
         return;
     }
     _syllableBuckets = new SyllableBuckets[TermsPerEntry];
     for (int i = 0; i < TermsPerEntry; i++)
     {
         _syllableBuckets[i] = new SyllableBuckets(i, new RantDictionaryEntry[] { });
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Optimizes the table. Call this after writing items to the table or removing items from a table.
 /// If you're writing or removing multiple items, call this after all the actions have been performed.
 /// </summary>
 public void RebuildCache()
 {
     if (!_dirty)
     {
         return;
     }
     _cache.BuildCache(this);
     CreateSyllableBuckets();
     for (int i = 0; i < TermsPerEntry; i++)
     {
         _syllableBuckets[i] = new SyllableBuckets(i, _entriesList);
     }
     _dirty = false;
 }