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
RecordReader
initialize
在类中 RecordReader<BytesWritable,BytesWritable>
split
- the split that defines the range of records to readcontext
- the information about the taskIOException
InterruptedException
public BytesWritable getCurrentKey() throws IOException, InterruptedException
RecordReader
getCurrentKey
在类中 RecordReader<BytesWritable,BytesWritable>
IOException
InterruptedException
public BytesWritable getCurrentValue() throws IOException, InterruptedException
RecordReader
getCurrentValue
在类中 RecordReader<BytesWritable,BytesWritable>
IOException
InterruptedException
public String getKeyClassName()
public String getValueClassName()
public boolean nextKeyValue() throws IOException, InterruptedException
nextKeyValue
在类中 RecordReader<BytesWritable,BytesWritable>
IOException
InterruptedException
public void close() throws IOException
RecordReader
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 RecordReader<BytesWritable,BytesWritable>
IOException
public float getProgress() throws IOException, InterruptedException
getProgress
在类中 RecordReader<BytesWritable,BytesWritable>
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation