예제 #1
0
 public virtual void TweakBufferSizes()
 {
     //int count = 0;
     foreach (IndexInput ip in AllIndexInputs)
     {
         BufferedIndexInput bii = (BufferedIndexInput)ip;
         int bufferSize         = 1024 + Math.Abs(Rand.Next() % 32768);
         bii.SetBufferSize(bufferSize);
         //count++;
     }
     //System.out.println("tweak'd " + count + " buffer sizes");
 }
예제 #2
0
 public virtual void  tweakBufferSizes()
 {
     System.Collections.IEnumerator it = allIndexInputs.GetEnumerator();
     //int count = 0;
     while (it.MoveNext())
     {
         BufferedIndexInput bii = (BufferedIndexInput)it.Current;
         int bufferSize         = 1024 + (int)System.Math.Abs(rand.Next() % 32768);
         bii.SetBufferSize(bufferSize);
         //count++;
     }
     //System.out.println("tweak'd " + count + " buffer sizes");
 }