hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul van Hoven <paul.van.ho...@googlemail.com>
Subject Custom output value for map function
Date Wed, 27 Feb 2013 18:34:27 GMT
The output value in the map function is in most examples for hadoop
something like this:

public static class Map extends Mapper<LongWritable, Text, outputKey,
outputValue>

Normally outputValue is something like Text or IntWriteable.

I got a custom class with its own properties like

public class Dog {
   string name;
   Date birthday;
   double weight;
}

Now how would I accomplish the following map function:

public static class Map extends Mapper<LongWritable, Text, IntWritable, Dog>

?

Mime
View raw message