public class LineInputFormat extends BaseInputFormat
| Constructor and Description |
|---|
LineInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
RecordReader |
createReader(InputSplit split)
Creates a reader from an input split
|
RecordReader |
createReader(InputSplit split,
Configuration conf)
Creates a reader from an input split
|
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from
in. |
void |
write(java.io.DataOutput out)
Serialize the fields of this object to
out. |
toDouble, toFloat, toInt, toLongpublic RecordReader createReader(InputSplit split, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
InputFormatsplit - the split to readjava.io.IOExceptionjava.lang.InterruptedExceptionpublic RecordReader createReader(InputSplit split) throws java.io.IOException, java.lang.InterruptedException
InputFormatcreateReader in interface InputFormatcreateReader in class BaseInputFormatsplit - the split to readjava.io.IOExceptionjava.lang.InterruptedExceptionpublic void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.write in interface Writablewrite in class BaseInputFormatout - DataOuput to serialize this object into.java.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface WritablereadFields in class BaseInputFormatin - DataInput to deseriablize this object from.java.io.IOException