public static class SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader extends Object implements RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
| Constructor and Description |
|---|
SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader(org.apache.hadoop.conf.Configuration conf,
FileSplit split) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this
InputSplit to future operations. |
org.apache.hadoop.io.BytesWritable |
createKey()
Create an object of the appropriate type to be used as a key.
|
org.apache.hadoop.io.BytesWritable |
createValue()
Create an object of the appropriate type to be used as a value.
|
String |
getKeyClassName()
Retrieve the name of the key class for this SequenceFile.
|
long |
getPos()
Returns the current position in the input.
|
float |
getProgress()
Return the progress within the input split
|
String |
getValueClassName()
Retrieve the name of the value class for this SequenceFile.
|
boolean |
next(org.apache.hadoop.io.BytesWritable key,
org.apache.hadoop.io.BytesWritable val)
Read raw bytes from a SequenceFile.
|
public SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader(org.apache.hadoop.conf.Configuration conf,
FileSplit split)
throws IOException
IOExceptionpublic org.apache.hadoop.io.BytesWritable createKey()
RecordReadercreateKey in interface RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>public org.apache.hadoop.io.BytesWritable createValue()
RecordReadercreateValue in interface RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>public String getKeyClassName()
SequenceFile.Reader.getKeyClassName()public String getValueClassName()
SequenceFile.Reader.getValueClassName()public boolean next(org.apache.hadoop.io.BytesWritable key,
org.apache.hadoop.io.BytesWritable val)
throws IOException
next in interface RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>key - the key to read data intoval - the value to read data intoIOExceptionpublic long getPos()
throws IOException
RecordReadergetPos in interface RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>IOExceptionpublic void close()
throws IOException
RecordReaderInputSplit to future operations.close in interface RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>IOExceptionpublic float getProgress()
throws IOException
getProgress in interface RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>IOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.