// verify
SSTable.indexMetadataMap_.clear(); // force reloading the index
List<String> keys = new ArrayList(map.keySet());
Collections.shuffle(keys);
ssTable = new SSTable(f.getPath() + "-Data.db", new OrderPreservingPartitioner());
FileStruct fs = new FileStruct(SequenceFile.bufferedReader(ssTable.dataFile_, 128 * 1024), new OrderPreservingPartitioner());
for (String key : keys)
{
fs.seekTo(key);
int size = fs.getBufIn().readInt();
byte[] bytes2 = new byte[size];
fs.getBufIn().readFully(bytes2);
assert Arrays.equals(bytes2, map.get(key));
}
}