Re: Do I need to implement Readfields and Write Functions If I have Only One Field?

2009-06-04 Thread Aaron Kimball
If you don't add any member fields, then no, I don't think you need to change anything. - Aaron On Wed, Jun 3, 2009 at 4:11 PM, dealmaker vin...@gmail.com wrote: I have the following as my type of my value object. Do I need to implement readfields and write functions? private static

Re: Do I need to implement Readfields and Write Functions If I have Only One Field?

2009-06-03 Thread Aaron Kimball
If you can use an existing serializeable type to hold that field (e.g., if it's an integer, then use IntWritable) then you can just get away with that. If you are specifying your own class for a key or value class, then yes, the class must implement readFields() and write(). There's no concept of

Re: Do I need to implement Readfields and Write Functions If I have Only One Field?

2009-06-03 Thread dealmaker
I have the following as my type of my value object. Do I need to implement readfields and write functions? private static class StringArrayWritable extends ArrayWritable { private StringArrayWritable (String [] aSString) { super (aSString); } } Aaron Kimball-3 wrote: