Configuration conf = IntegrationUtils.getBespinConfiguration();
FileSystem fs = FileSystem.get(conf);
SequenceFile.Reader reader;
IntWritable key = new IntWritable();
HMapIFW map = new HMapIFW();
WeightedIntDocVector value = new WeightedIntDocVector();
reader = new SequenceFile.Reader(fs.getConf(),
SequenceFile.Reader.file(new Path(galagoIndex + "/test_wt-int-doc-vectors/part-00000")));
reader.next(key, value);
System.out.println("*** top 10 terms ***");
map = value.getWeightedTerms();
for ( MapIF.Entry entry : map.getEntriesSortedByValue(10)) {
System.out.println(entry.getKey() + ": " + entry.getValue());
}
verifyIntDocVector(galagoIntDocVector1, value);
reader.next(key, value);
System.out.println("*** top 10 terms ***");
map = value.getWeightedTerms();
for ( MapIF.Entry entry : map.getEntriesSortedByValue(10)) {
System.out.println(entry.getKey() + ": " + entry.getValue());
}
verifyIntDocVector(galagoIntDocVector2, value);
reader.close();
}