@Deprecated public class GuaguaLineRecordReader extends Object implements ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>
Copy some code from LineRecordReader but to support GuaguaRecordReader
interface.
If use default constructor, user should also call initialize(GuaguaFileSplit) like in below:
this.setRecordReader(new GuaguaLineRecordReader()); this.getRecordReader().initialize(fileSplit);or directly use other constructors:
this.setRecordReader(new GuaguaLineRecordReader(fileSplit));
| Constructor and Description |
|---|
GuaguaLineRecordReader()
Deprecated.
|
GuaguaLineRecordReader(org.apache.hadoop.conf.Configuration conf,
ml.shifu.guagua.io.GuaguaFileSplit split)
Deprecated.
|
GuaguaLineRecordReader(ml.shifu.guagua.io.GuaguaFileSplit split)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
|
GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable> |
getCurrentKey()
Deprecated.
|
GuaguaWritableAdapter<org.apache.hadoop.io.Text> |
getCurrentValue()
Deprecated.
|
float |
getProgress()
Deprecated.
Get the progress within the split
|
void |
initialize(ml.shifu.guagua.io.GuaguaFileSplit split)
Deprecated.
|
boolean |
nextKeyValue()
Deprecated.
|
public GuaguaLineRecordReader()
public GuaguaLineRecordReader(ml.shifu.guagua.io.GuaguaFileSplit split)
throws IOException
IOExceptionpublic GuaguaLineRecordReader(org.apache.hadoop.conf.Configuration conf,
ml.shifu.guagua.io.GuaguaFileSplit split)
throws IOException
IOExceptionpublic void initialize(ml.shifu.guagua.io.GuaguaFileSplit split)
throws IOException
initialize in interface ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>IOExceptionpublic boolean nextKeyValue()
throws IOException
nextKeyValue in interface ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>IOExceptionpublic GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable> getCurrentKey()
getCurrentKey in interface ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>public GuaguaWritableAdapter<org.apache.hadoop.io.Text> getCurrentValue()
getCurrentValue in interface ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>public float getProgress()
public void close()
throws IOException
close in interface ml.shifu.guagua.io.GuaguaRecordReader<GuaguaWritableAdapter<org.apache.hadoop.io.LongWritable>,GuaguaWritableAdapter<org.apache.hadoop.io.Text>>IOExceptionCopyright © 2019. All Rights Reserved.