IntegerGenerator keyGenerator = null;
if(recordSelection.compareTo(Benchmark.UNIFORM_RECORD_SELECTION) == 0) {
int keySpace = (recordCount > 0) ? recordCount : Integer.MAX_VALUE;
keyGenerator = new UniformIntegerGenerator(0, keySpace - 1);
} else if(recordSelection.compareTo(Benchmark.ZIPFIAN_RECORD_SELECTION) == 0) {
int expectedNewKeys = (int) (opCount * writeProportion * 2.0);
keyGenerator = new ScrambledZipfianGenerator(recordCount + expectedNewKeys);