public static class SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader extends RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
Constructor and Description |
---|
SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the record reader.
|
org.apache.hadoop.io.BytesWritable |
getCurrentKey()
Get the current key
|
org.apache.hadoop.io.BytesWritable |
getCurrentValue()
Get the current value.
|
java.lang.String |
getKeyClassName()
Retrieve the name of the key class for this SequenceFile.
|
float |
getProgress()
Return the progress within the input split
|
java.lang.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 java.io.IOException, java.lang.InterruptedException
RecordReader
initialize
in class RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
split
- the split that defines the range of records to readcontext
- the information about the taskjava.io.IOException
java.lang.InterruptedException
public org.apache.hadoop.io.BytesWritable getCurrentKey() throws java.io.IOException, java.lang.InterruptedException
RecordReader
getCurrentKey
in class RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
java.io.IOException
java.lang.InterruptedException
public org.apache.hadoop.io.BytesWritable getCurrentValue() throws java.io.IOException, java.lang.InterruptedException
RecordReader
getCurrentValue
in class RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
java.io.IOException
java.lang.InterruptedException
public java.lang.String getKeyClassName()
SequenceFile.Reader.getKeyClassName()
public java.lang.String getValueClassName()
SequenceFile.Reader.getValueClassName()
public boolean nextKeyValue() throws java.io.IOException, java.lang.InterruptedException
nextKeyValue
in class RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
java.io.IOException
java.lang.InterruptedException
public void close() throws java.io.IOException
RecordReader
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
java.io.IOException
public float getProgress() throws java.io.IOException, java.lang.InterruptedException
getProgress
in class RecordReader<org.apache.hadoop.io.BytesWritable,org.apache.hadoop.io.BytesWritable>
java.io.IOException
java.lang.InterruptedException
Copyright © 2009 The Apache Software Foundation