SequenceFileDirIterable<Text, VectorWritable> dirIterable =
new SequenceFileDirIterable<Text, VectorWritable>(getInputPath(), PathType.LIST, PathFilters.partFilter(), getConf());
// loop through the part-r-* files in getInputPath() and get classification scores for all entries
for (Pair<Text, VectorWritable> pair : dirIterable) {
writer.append(new Text(SLASH.split(pair.getFirst().toString())[1]),
new VectorWritable(classifier.classifyFull(pair.getSecond().get())));
}
} finally {
Closeables.close(writer, false);
}
}