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 <rogc...@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 >