示例#1
0
        private void CopyToTable(int partitionNo, ulong[] orderedMers, TV[] orderedValues, int merCount, int merSize)
        {
            //Console.WriteLine("starting copy for partition " + partitionNo);
            kMerDictionary <TV> pmp = new kMerDictionary <TV>(merCount, merSize);

            pmers[partitionNo] = pmp;
            for (int i = 0; i < merCount; i++)
            {
                pmp.AddNoCheck(orderedMers[i], orderedValues[i]);
            }
            pmp.Optimise();
            //Console.WriteLine(merCount + " mers copied for partition " + partitionNo);
        }
示例#2
0
 public void Optimise()
 {
     if (partitioned)
     {
         for (int i = 0; i < noOfPartitions; i++)
         {
             dictionaryPartitions[i].Optimise();
         }
     }
     else
     {
         dictionary.Optimise();
     }
 }