valList.add(rand.nextInt());
position = i * (long)MultiMappedWriter.BUFFER_SIZE;
}
DataWriter writer = createDataWriter(file);
writer.open();
for(int i = 0, cnt = posList.size(); i < cnt; i++) {
writer.writeInt(posList.get(i), valList.get(i));
}
writer.flush();
writer.close();