FileSystem fs = FileSystem.getLocal(job);
RetrievalEnvironment re = new RetrievalEnvironment(job.get("Ivory.IndexPath"),
fs);
Path path = re.getDoclengthsData();
sLogger.debug("Reading doclengths: " + path);
mDocLengthTable = new DocLengthTable2B(path, fs);
} else {
Path[] localFiles = DistributedCache.getLocalCacheFiles(job);
mDocLengthTable = new DocLengthTable2B(localFiles[0], FileSystem.getLocal(job));
}
} catch (Exception e) {
throw new RuntimeException("Error initializing DocLengthTable!");
}