extends Reducer<IntWritable, Text, IntWritable, Text> {
@Override
public void reduce(IntWritable songId, Iterable<Text> sim,
Context context) throws IOException, InterruptedException {
Similarities neih = new Similarities();
for (Text s : sim) {
// System.out.println("sim " + s.toString());
neih.insert(new Similarity(s.toString()));
}
for (Similarity s : neih) {
context.write(songId, new Text(s.toString()));
}