public Reader(FileSystem fs, Schema targetSchema, Configuration conf, Path file) throws IOException {
this.file = file;
innerReader = new SequenceFile.Reader(fs, file, conf);
loadSchema();
HadoopSerialization ser = new HadoopSerialization(conf);
if(targetSchema != null) {
this.deser = new SimpleTupleDeserializer(schema, targetSchema, ser, conf);
this.tuple = new Tuple(targetSchema);
} else {
this.deser = new SimpleTupleDeserializer(schema, ser, conf);