}
for (int i = 0; i < top.length; i++) {
int indexDocNo = in.readInt(); // read indexDocNo
WritableComparable sortValue = null;
try {
sortValue = (WritableComparable)sortClass.newInstance();
} catch (Exception e) {
throw new IOException(e.toString());
}
sortValue.readFields(in); // read sortValue
String dedupValue = UTF8.readString(in); // read dedupValue
top[i] = new Hit(indexDocNo, sortValue, dedupValue);
}