public class LineDocRecordReader extends java.lang.Object implements RecordReader<DocumentID,LineDocTextAndOp>
| Constructor and Description |
|---|
LineDocRecordReader(org.apache.hadoop.conf.Configuration job,
FileSplit split)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close this
InputSplit to future operations. |
DocumentID |
createKey()
Create an object of the appropriate type to be used as a key.
|
LineDocTextAndOp |
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(DocumentID key,
LineDocTextAndOp value)
Reads the next key/value pair from the input for processing.
|
public LineDocRecordReader(org.apache.hadoop.conf.Configuration job,
FileSplit split)
throws java.io.IOException
job - split - java.io.IOExceptionpublic void close()
throws java.io.IOException
RecordReaderInputSplit to future operations.close in interface RecordReader<DocumentID,LineDocTextAndOp>java.io.IOExceptionpublic DocumentID createKey()
RecordReadercreateKey in interface RecordReader<DocumentID,LineDocTextAndOp>public LineDocTextAndOp createValue()
RecordReadercreateValue in interface RecordReader<DocumentID,LineDocTextAndOp>public long getPos()
throws java.io.IOException
RecordReadergetPos in interface RecordReader<DocumentID,LineDocTextAndOp>java.io.IOExceptionpublic float getProgress()
throws java.io.IOException
RecordReaderRecordReader consumed i.e.
has been processed by?getProgress in interface RecordReader<DocumentID,LineDocTextAndOp>0.0 to 1.0.java.io.IOExceptionpublic boolean next(DocumentID key, LineDocTextAndOp value) throws java.io.IOException
RecordReadernext in interface RecordReader<DocumentID,LineDocTextAndOp>key - the key to read data intovalue - the value to read data intojava.io.IOExceptionCopyright © 2009 The Apache Software Foundation