示例#1
0
 public ParagraphRecordReader(JobConf conf, FileSplit split) throws IOException {
   lineRecord = new LineRecordReader(conf, split);
   lineKey = lineRecord.createKey();
   lineValue = lineRecord.createValue();
 }
 public DocumentRecordReader(JobConf conf, FileSplit split) throws IOException {
   lineReader = new LineRecordReader(conf, split);
   lineKey = new Text(split.getPath().getName());
   lineValue = lineReader.createValue();
   lineReaderKey = lineReader.createKey();
 }
 public Text createValue() {
   return recordReader.createValue();
 }