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