Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # user - Initialization for record writing.

Copy link to this message
Initialization for record writing.
Jane Chen 2011-01-21, 23:57

Looking at 0.21's API,

In org.apache.hadoop.mapreduce.RecordReader, there is an initialize() method that I can use for one time work;

In org.apache.hadoop.mapreduce.RecordWriter, there is no initialize().

Why is that?  Where am I supposed to do the one time initialization?  In the constructor?  Why the asymmetry?