hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Urso <antho...@cs.ucla.edu>
Subject Re: Creating a custom composite key
Date Fri, 12 Aug 2011 23:22:39 GMT
This is fairly common. Just write your key as a Java class, implement
WritableComparable, and do the right thing with your compareTo() and
hashCode()/equals() methods.

SecondarySort.IntPair in the examples may be inspirational.

On Fri, Aug 12, 2011 at 3:49 PM, Roger Chen <rogchen@ucdavis.edu> wrote:
> Hi all,
> Is anybody familiar with how to define a custom composite key in a format
> such as (Text, Text) so your context written as a key and value could be
> ((Text, Text) LongWritable)?
> Thanks,
> --
> Roger Chen
> UC Davis Genome Center

View raw message