You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by 徐凡 <ti...@hotmail.com> on 2013/12/13 02:57:48 UTC

how can I get the index of each record from AvroMapper

Hey there,
For each map input: map(SpecificRecord line, AvroCollector<Pair<Text, SpecificRecord>> collector, Reporter reporter),how can I get the index of each line?
What I'm thinking about doing this is to overwrite the AvroInputFormat, AvroRecordReader. Anyone has an idea on this?
Thanks and Regards,Fan