|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.SequenceFileAsTextRecordReader
public class SequenceFileAsTextRecordReader
This class converts the input keys and values to their String forms by calling toString() method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader class to TextInputFormat class.
Constructor Summary | |
---|---|
SequenceFileAsTextRecordReader(Configuration conf,
FileSplit split)
|
Method Summary | |
---|---|
void |
close()
Close this InputSplit to future operations. |
Text |
createKey()
Create an object of the appropriate type to be used as a key. |
Text |
createValue()
Create an object of the appropriate type to be used as a value. |
long |
getPos()
Returns the current position in the input. |
float |
getProgress()
How much of the input has the RecordReader consumed i.e. |
boolean |
next(Text key,
Text value)
Read key/value pair in a line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceFileAsTextRecordReader(Configuration conf, FileSplit split) throws IOException
IOException
Method Detail |
---|
public Text createKey()
RecordReader
createKey
in interface RecordReader<Text,Text>
public Text createValue()
RecordReader
createValue
in interface RecordReader<Text,Text>
public boolean next(Text key, Text value) throws IOException
next
in interface RecordReader<Text,Text>
key
- the key to read data intovalue
- the value to read data into
IOException
public float getProgress() throws IOException
RecordReader
RecordReader
consumed i.e.
has been processed by?
getProgress
in interface RecordReader<Text,Text>
0.0
to 1.0
.
IOException
public long getPos() throws IOException
RecordReader
getPos
in interface RecordReader<Text,Text>
IOException
public void close() throws IOException
RecordReader
InputSplit
to future operations.
close
in interface RecordReader<Text,Text>
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |