|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader
public static class SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader
Read records from a SequenceFile as binary (raw) bytes.
| Constructor Summary | |
|---|---|
SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader(Configuration conf,
FileSplit split)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader(Configuration conf,
FileSplit split)
throws IOException
IOException| Method Detail |
|---|
public BytesWritable createKey()
RecordReader
createKey in interface RecordReader<BytesWritable,BytesWritable>public BytesWritable createValue()
RecordReader
createValue in interface RecordReader<BytesWritable,BytesWritable>public String getKeyClassName()
SequenceFile.Reader.getKeyClassName()public String getValueClassName()
SequenceFile.Reader.getValueClassName()
public boolean next(BytesWritable key,
BytesWritable val)
throws IOException
next in interface RecordReader<BytesWritable,BytesWritable>key - the key to read data intoval - the value to read data into
IOException
public long getPos()
throws IOException
RecordReader
getPos in interface RecordReader<BytesWritable,BytesWritable>IOException
public void close()
throws IOException
RecordReaderInputSplit to future operations.
close in interface RecordReader<BytesWritable,BytesWritable>IOException
public float getProgress()
throws IOException
getProgress in interface RecordReader<BytesWritable,BytesWritable>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||