if (((RecordReader) reader) instanceof LineRecordReader
|| (RecordReader) reader instanceof SequenceFileRecordReader) {
// sequnceFile的key是BytesWritable,lineRecordReader的key为LongWritable
if ((RecordReader) reader instanceof SequenceFileRecordReader) {
SequenceFileRecordReader sReader = (SequenceFileRecordReader) reader;
key = (Writable) sReader.getKeyClass().newInstance();
} else {
key = new LongWritable();
}
while (reader.next(key, textValue)
&& count < MAX_RECORD_TO_READ) {