for (int k = 0; k < outDirs.size(); k++) {
processedRecords++;
if (workingDir.exists()) {
FileUtil.fullyDelete(workingDir);
}
IndexSegment indexer = new IndexSegment(nfs, Integer.MAX_VALUE,
(File)outDirs.get(k), workingDir);
indexer.indexPages();
FileUtil.fullyDelete(workingDir);
}
}
if (delSegs) {
// This deletes also all corrupt segments, which are