if(!input.equals(DEFAULT_DATAGEN)) {
/* note that the iterator must return the items sorted */
index.writeIndex(DataGenerator.fileIterator(lookupHits, size, hitrate, input));
} else {
index.writeIndex(DataGenerator.randomIterator(lookupHits, size, hitrate, minStrLen, maxStrLen, minChar, maxChar));
}
} else {
// populate the lookup-hits table
DiskIndex diskIndexTmp = new DiskIndex(path, new DefaultByteRangeComparator(), compress, mmap);
Iterator<Entry<byte[], byte[]>> itTmp = diskIndexTmp.rangeLookup(null, null, true);