|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.examples.MultiFileWordCount.MultiFileLineRecordReader
public static class MultiFileWordCount.MultiFileLineRecordReader
RecordReader is responsible from extracting records from the InputSplit.
This record reader accepts a MultiFileSplit
, which encapsulates several
files, and no file is divided.
Constructor Summary | |
---|---|
MultiFileWordCount.MultiFileLineRecordReader(Configuration conf,
MultiFileSplit split)
|
Method Summary | |
---|---|
void |
close()
Close this InputSplit to future operations. |
MultiFileWordCount.WordOffset |
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(MultiFileWordCount.WordOffset key,
Text value)
Reads the next key/value pair from the input for processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiFileWordCount.MultiFileLineRecordReader(Configuration conf, MultiFileSplit split) throws IOException
IOException
Method Detail |
---|
public void close() throws IOException
RecordReader
InputSplit
to future operations.
close
in interface RecordReader<MultiFileWordCount.WordOffset,Text>
IOException
public long getPos() throws IOException
RecordReader
getPos
in interface RecordReader<MultiFileWordCount.WordOffset,Text>
IOException
public float getProgress() throws IOException
RecordReader
RecordReader
consumed i.e.
has been processed by?
getProgress
in interface RecordReader<MultiFileWordCount.WordOffset,Text>
0.0
to 1.0
.
IOException
public boolean next(MultiFileWordCount.WordOffset key, Text value) throws IOException
RecordReader
next
in interface RecordReader<MultiFileWordCount.WordOffset,Text>
key
- the key to read data intovalue
- the value to read data into
IOException
public MultiFileWordCount.WordOffset createKey()
RecordReader
createKey
in interface RecordReader<MultiFileWordCount.WordOffset,Text>
public Text createValue()
RecordReader
createValue
in interface RecordReader<MultiFileWordCount.WordOffset,Text>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |