public class CSVInputFormat extends BaseInputFormat
| Constructor and Description |
|---|
CSVInputFormat() |
| 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(DataInput in)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public RecordReader createReader(InputSplit split, Configuration conf) throws IOException, InterruptedException
InputFormatsplit - the split to readIOExceptionInterruptedExceptionpublic RecordReader createReader(InputSplit split) throws IOException, InterruptedException
InputFormatcreateReader in interface InputFormatcreateReader in class BaseInputFormatsplit - the split to readIOExceptionInterruptedExceptionpublic void write(DataOutput out) throws IOException
Writableout.write in interface Writablewrite in class BaseInputFormatout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws 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.IOExceptionCopyright © 2017. All rights reserved.