try {
Path unqualifiedItemIDIndexPath = new Path(itemIDIndexPathStr);
FileSystem fs = FileSystem.get(unqualifiedItemIDIndexPath.toUri(), conf);
Path itemIDIndexPath = new Path(itemIDIndexPathStr).makeQualified(fs);
VarIntWritable index = new VarIntWritable();
VarLongWritable id = new VarLongWritable();
for (FileStatus status : fs.listStatus(itemIDIndexPath, PARTS_FILTER)) {
String path = status.getPath().toString();
SequenceFile.Reader reader = new SequenceFile.Reader(fs, new Path(path).makeQualified(fs), conf);
while (reader.next(index, id)) {
indexItemIDMap.put(index.get(), id.get());
}
reader.close();
}
} catch (IOException ioe) {
throw new IllegalStateException(ioe);