public void map(
        LongWritable key,
        TrecDocument doc,
        OutputCollector<Text, IntWritable> output,
        Reporter reporter)
        throws IOException {
      reporter.incrCounter(Count.DOCS, 1);

      docid.set(doc.getDocid());
      one.set(docMapping.getDocno(doc.getDocid()));
      output.collect(docid, one);
    }
 @Override
 public void map(LongWritable key, TrecDocument doc, Context context)
     throws IOException, InterruptedException {
   context.getCounter(Count.DOCS).increment(1);
   docid.set(doc.getDocid());
   context.write(docid, one);
 }
 /** Reads the next key-value pair. */
 public boolean next(LongWritable key, TrecDocument value) throws IOException {
   if (reader.next(pos, text) == false) {
     return false;
   }
   key.set(pos.get());
   TrecDocument.readDocument(value, text.toString());
   return true;
 }