hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julia Smith <invisible...@mac.com>
Subject Re: specification of type params in org.apache.hadoop.io.*Writable impls
Date Tue, 30 Mar 2010 17:28:18 GMT
It's easy enough to change the prototype to Comparable<?>, should fix it.

On Mar 30, 2010, at 9:51 AM, Doug Cutting wrote:

> Andy Schlaikjer wrote:
>> Can anyone comment on why the base *Writable implementations (e.g.
>> IntWritable, LongWritable, etc) don't specify WritableComparable<T>'s
>> type param T?
> I suspect it's just historic.  When they were first written we were not using Java generics,
and no one has ever retrofitted them with generics.
> Doug

View raw message