Class AvroMapperGenerator<OBJ>

  • All Implemented Interfaces:
    MapperGenerator<org.apache.avro.mapred.AvroKey<OBJ>,​org.apache.hadoop.io.NullWritable>

    public class AvroMapperGenerator<OBJ>
    extends Object
    implements MapperGenerator<org.apache.avro.mapred.AvroKey<OBJ>,​org.apache.hadoop.io.NullWritable>
    An AvroMapperGenerator is a MapperGenerator that can handle Avro input data and convert it into an Iterable of Elements.
    • Constructor Detail

      • AvroMapperGenerator

        public AvroMapperGenerator()
    • Method Detail

      • getElements

        public Iterable<? extends Element> getElements​(org.apache.avro.mapred.AvroKey<OBJ> keyIn,
                                                       org.apache.hadoop.io.NullWritable valueIn,
                                                       org.apache.hadoop.mapreduce.MapContext<org.apache.avro.mapred.AvroKey<OBJ>,​org.apache.hadoop.io.NullWritable,​?,​?> context)
        Specified by:
        getElements in interface MapperGenerator<org.apache.avro.mapred.AvroKey<OBJ>,​org.apache.hadoop.io.NullWritable>