createRecordReader(final InputSplit is, final TaskAttemptContext tc)
throws IOException, InterruptedException {
Schema s = getInputAvroSchema();
RecordReader<NullWritable, GenericData.Record> rr = null;
if (s.getType() == Type.ARRAY) {
rr = new AvroArrayReader(s);
} else {
rr = new AvroRecordReader(s);
}
rr.initialize(is, tc);
tc.setStatus(is.toString());