return Avros.newReader(atype);
}
@Override
public Iterator<T> read(FileSystem fs, final Path path) {
AvroMode mode = AvroMode.fromType(atype).withFactoryFromConfiguration(fs.getConf());
final DatumReader recordReader = reader == null ? mode.getReader(atype.getSchema()) : reader;
this.mapFn.initialize();
try {
FsInput fsi = new FsInput(path, fs.getConf());
final DataFileReader<T> reader = new DataFileReader<T>(fsi, recordReader);
return new AutoClosingIterator<T>(reader, new UnmodifiableIterator<T>() {