|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.RecordReader<BytesWritable,BytesWritable>
org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader
public static class SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader
Read records from a SequenceFile as binary (raw) bytes.
| Constructor Summary | |
|---|---|
SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader()
| Method Detail |
|---|
public void initialize(InputSplit split,
TaskAttemptContext context)
throws IOException,
InterruptedException
RecordReader
initialize in class RecordReader<BytesWritable,BytesWritable>split - the split that defines the range of records to readcontext - the information about the task
IOException
InterruptedException
public BytesWritable getCurrentKey()
throws IOException,
InterruptedException
RecordReader
getCurrentKey in class RecordReader<BytesWritable,BytesWritable>IOException
InterruptedException
public BytesWritable getCurrentValue()
throws IOException,
InterruptedException
RecordReader
getCurrentValue in class RecordReader<BytesWritable,BytesWritable>IOException
InterruptedExceptionpublic String getKeyClassName()
SequenceFile.Reader.getKeyClassName()public String getValueClassName()
SequenceFile.Reader.getValueClassName()
public boolean nextKeyValue()
throws IOException,
InterruptedException
nextKeyValue in class RecordReader<BytesWritable,BytesWritable>IOException
InterruptedException
public void close()
throws IOException
RecordReader
close in interface Closeableclose in class RecordReader<BytesWritable,BytesWritable>IOException
public float getProgress()
throws IOException,
InterruptedException
getProgress in class RecordReader<BytesWritable,BytesWritable>IOException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||