hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jane Chen <jxchen_us_1...@yahoo.com>
Subject Initialization for record writing.
Date Fri, 21 Jan 2011 23:57:23 GMT
Hi,

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?

Thanks,
Jane


      

Mime
View raw message