public SequenceFileReader(FileSystem fs, Path file, Map<String, Object> conf, String offset)
throws IOException {
super(fs, file);
int bufferSize = !conf.containsKey(BUFFER_SIZE) ? DEFAULT_BUFF_SIZE : Integer.parseInt(conf.get(BUFFER_SIZE).toString());
this.offset = new SequenceFileReader.Offset(offset);
this.reader = new SequenceFile.Reader(fs.getConf(), SequenceFile.Reader.file(file), SequenceFile.Reader.bufferSize(bufferSize));
this.key = (Key) ReflectionUtils.newInstance(reader.getKeyClass(), fs.getConf());
this.value = (Value) ReflectionUtils.newInstance(reader.getValueClass(), fs.getConf());
skipToOffset(this.reader, this.offset, this.key);
}