public static class SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader extends Object implements RecordReader<BytesWritable,BytesWritable>
| 构造器和说明 |
|---|
SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader(Configuration conf,
FileSplit split) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close this
InputSplit to future operations. |
BytesWritable |
createKey()
Create an object of the appropriate type to be used as a key.
|
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(BytesWritable key,
BytesWritable val)
Read raw bytes from a SequenceFile.
|
public SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader(Configuration conf, FileSplit split) throws IOException
IOExceptionpublic BytesWritable createKey()
RecordReadercreateKey 在接口中 RecordReader<BytesWritable,BytesWritable>public BytesWritable createValue()
RecordReadercreateValue 在接口中 RecordReader<BytesWritable,BytesWritable>public String getKeyClassName()
public String getValueClassName()
public boolean next(BytesWritable key, BytesWritable val) throws IOException
next 在接口中 RecordReader<BytesWritable,BytesWritable>key - the key to read data intoval - the value to read data intoIOExceptionpublic long getPos()
throws IOException
RecordReadergetPos 在接口中 RecordReader<BytesWritable,BytesWritable>IOExceptionpublic void close()
throws IOException
RecordReaderInputSplit to future operations.close 在接口中 RecordReader<BytesWritable,BytesWritable>IOExceptionpublic float getProgress()
throws IOException
getProgress 在接口中 RecordReader<BytesWritable,BytesWritable>IOExceptionCopyright © 2009 The Apache Software Foundation