public void map(IntWritable docno, Signature signature,
OutputCollector<IntWritable, PairOfFloatInt> output, Reporter reporter) throws IOException {
for (int i = 0; i < signatures.size(); i++) {
reporter.incrCounter(Pairs.Total, 1);
IntWritable sampleDocno = (IntWritable) signatures.get(i).getLeftElement();
Signature fromSample = (Signature) signatures.get(i).getRightElement();
int dist = signature.hammingDistance(fromSample, maxDist);
// if((sampleDocno.get()==1000009022 && docno.get()==189034) ||
// (sampleDocno.get()==1000170828 && docno.get()==2898431)){
// reporter.incrCounter(Pairs.DEBUG, 1);
// sLogger.info(sampleDocno.get()+","+docno.get()+"="+dist);