Dennis Kubes wrote:
> The indexer uses an ObjectWritable and I am using that
trick. Problem
> is I need to input and ObjectWritable but output a
different object.
> I will take a look at the hadoop list.
You can view ObjectWritable as an opaque container for any,
well, Object
;). This means that you can produce Objects of whatever
class (so long
as they implement Writable), stuff them into
ObjectWritables, and then
write your own OutputFormat where you unpack them.
Check e.g. SegmentMerger to see how to do this - this is an
extreme
case, because it not only produces different class types on
output, but
also produces many output files.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com
Contact: info at sigram dot com
|