/**
* Get the record writer that points to the output collection.
*/
public RecordWriter<K, V> getRecordWriter(final TaskAttemptContext context) {
return new MongoRecordWriter(MongoConfigUtil.getOutputCollections(context.getConfiguration()), context);
}