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
IOException
public BytesWritable createKey()
RecordReader
createKey
在接口中 RecordReader<BytesWritable,BytesWritable>
public BytesWritable createValue()
RecordReader
createValue
在接口中 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 intoIOException
public long getPos() throws IOException
RecordReader
getPos
在接口中 RecordReader<BytesWritable,BytesWritable>
IOException
public void close() throws IOException
RecordReader
InputSplit
to future operations.close
在接口中 RecordReader<BytesWritable,BytesWritable>
IOException
public float getProgress() throws IOException
getProgress
在接口中 RecordReader<BytesWritable,BytesWritable>
IOException
Copyright © 2009 The Apache Software Foundation