public class GuaguaSequenceAsTextRecordReader extends GuaguaSequenceRecordReader<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
BytesWritable.
Copy some code from org.apache.hadoop.mapred.GuaguaSequenceAsTextRecordReader but to support
GuaguaRecordReader interface.
If use default constructor, user should also call GuaguaSequenceRecordReader.initialize(GuaguaFileSplit) like in below:
this.setRecordReader(new GuaguaSequenceAsBinaryRecordReader()); this.getRecordReader().initialize(fileSplit);or directly use other constructors:
this.setRecordReader(new GuaguaSequenceAsTextRecordReader(fileSplit));
| Constructor and Description |
|---|
GuaguaSequenceAsTextRecordReader() |
GuaguaSequenceAsTextRecordReader(org.apache.hadoop.conf.Configuration conf,
ml.shifu.guagua.io.GuaguaFileSplit split) |
GuaguaSequenceAsTextRecordReader(ml.shifu.guagua.io.GuaguaFileSplit split) |
close, getCurrentKey, getCurrentValue, getProgress, initialize, nextKeyValuepublic GuaguaSequenceAsTextRecordReader()
throws IOException
IOExceptionpublic GuaguaSequenceAsTextRecordReader(ml.shifu.guagua.io.GuaguaFileSplit split)
throws IOException
IOExceptionpublic GuaguaSequenceAsTextRecordReader(org.apache.hadoop.conf.Configuration conf,
ml.shifu.guagua.io.GuaguaFileSplit split)
throws IOException
IOExceptionCopyright © 2019. All Rights Reserved.