I'm not sure on the customization to achieve that goal, but it should be possible. But if your requirement is to output the same line n number of times as the map output, you don't need to go that way. Just call the outputCollector.collect() or context.write() within a loop in your map method. If you could post in your requirement then may be we can help you better.
Bejoy K S
From: Mohamed Riadh Trad <[EMAIL PROTECTED]>
Date: Thu, 24 Nov 2011 18:20:26
To: <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Customized TextInputFormat
Is possible to customize the TextInputFormat in a way that it return the same line n times but with different keys, as for example it returns the same line but with different start positions?
Trad Mohamed Riadh, M.Sc, Ing.
INRIA-TELECOM PARISTECH - ENPC School of International Management
Phone: (33)-1 39 63 59 33
Fax: (33)-1 39 63 56 74
Email: [EMAIL PROTECTED]
Home page: http://www-rocq.inria.fr/who/Mohamed.Trad/