public static class SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader extends RecordReader<BytesWritable,BytesWritable>
| 构造器和说明 |
|---|
SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close the record reader.
|
BytesWritable |
getCurrentKey()
Get the current key
|
BytesWritable |
getCurrentValue()
Get the current value.
|
String |
getKeyClassName()
Retrieve the name of the key class for this SequenceFile.
|
float |
getProgress()
Return the progress within the input split
|
String |
getValueClassName()
Retrieve the name of the value class for this SequenceFile.
|
void |
initialize(InputSplit split,
TaskAttemptContext context)
Called once at initialization.
|
boolean |
nextKeyValue()
Read raw bytes from a SequenceFile.
|
public SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader()
public void initialize(InputSplit split, TaskAttemptContext context) throws IOException, InterruptedException
RecordReaderinitialize 在类中 RecordReader<BytesWritable,BytesWritable>split - the split that defines the range of records to readcontext - the information about the taskIOExceptionInterruptedExceptionpublic BytesWritable getCurrentKey() throws IOException, InterruptedException
RecordReadergetCurrentKey 在类中 RecordReader<BytesWritable,BytesWritable>IOExceptionInterruptedExceptionpublic BytesWritable getCurrentValue() throws IOException, InterruptedException
RecordReadergetCurrentValue 在类中 RecordReader<BytesWritable,BytesWritable>IOExceptionInterruptedExceptionpublic String getKeyClassName()
public String getValueClassName()
public boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue 在类中 RecordReader<BytesWritable,BytesWritable>IOExceptionInterruptedExceptionpublic void close()
throws IOException
RecordReaderclose 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 RecordReader<BytesWritable,BytesWritable>IOExceptionpublic float getProgress()
throws IOException,
InterruptedException
getProgress 在类中 RecordReader<BytesWritable,BytesWritable>IOExceptionInterruptedExceptionCopyright © 2009 The Apache Software Foundation