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);
while(itTmp.hasNext()) {
if(generator.nextInt() % hitrate == 0)
lookupHits.add(itTmp.next().getKey());
}
diskIndexTmp.destroy();