private void initializeRandomizationStartpoints(int incrementSize){
  this.randomStartpoints=new ConcurrentLinkedQueue<Integer>();
  int increments=luceneUtils.getNumDocs() / incrementSize;
  boolean remainder=luceneUtils.getNumDocs() % incrementSize > 0;
  if (remainder)   increments++;
  ArrayList<Integer> toRandomize=new ArrayList<Integer>();
  for (int x=0; x < increments; x++)   toRandomize.add(x * incrementSize);
  Collections.shuffle(toRandomize);
  randomStartpoints.addAll(toRandomize);
}

private void initializeRandomizationStartpoints ( int incrementSize ) { this . randomStartpoints = new ConcurrentLinkedQueue < Integer > ( ) ; int increments = luceneUtils . getNumDocs ( ) / incrementSize ; boolean remainder = luceneUtils . getNumDocs ( ) % incrementSize > 0 ; if ( remainder ) increments ++ ; ArrayList < Integer > toRandomize = new ArrayList < Integer > ( ) ; for ( int x = 0 ; x < increments ; x ++ ) toRandomize . add ( x * incrementSize ) ; Collections . shuffle ( toRandomize ) ; randomStartpoints . addAll ( toRandomize ) ; }
points in total document collection to draw queue from ( for randomization without excessive seek time )
