//opening clueweb forward index files
docForwardIndex = new DocumentForwardIndex[clueweb.size()];
for(int i = 0; i < clueweb.size(); i++) {
in = FileSystem.get(conf).open(new Path(clueweb.get(i)));
String indexClueWebClass = in.readUTF();
in.close();
try {
docForwardIndex[i] = (DocumentForwardIndex<Indexable>) Class.forName(indexClueWebClass).newInstance();
docForwardIndex[i].loadIndex(new Path(clueweb.get(i)), new Path(mappingFile), FileSystem.get(conf));
lastDocs[i] = docForwardIndex[i].getLastDocno();