Search

What are the uses of GenericWritable class ?



One of the uses is, GenericWritable classes are extended to provide implementations to wrap multiple value instances belonging to different data types.
Whenever multiple value types need to be produced from mapper and we need our reducer to process these multiple value types as a single data type because Hadoop reducers do not allow multiple input value types.
In these scenarios a subclass of GenericWritable can be used.