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(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, toLong
public RecordReader createReader(InputSplit split, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
InputFormat
split
- the split to readjava.io.IOException
java.lang.InterruptedException
public RecordReader createReader(InputSplit split) throws java.io.IOException, java.lang.InterruptedException
InputFormat
createReader
in interface InputFormat
createReader
in class BaseInputFormat
split
- the split to readjava.io.IOException
java.lang.InterruptedException
public void write(java.io.DataOutput out) throws java.io.IOException
Writable
out
.write
in interface Writable
write
in class BaseInputFormat
out
- DataOuput
to serialize this object into.java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
readFields
in class BaseInputFormat
in
- DataInput
to deseriablize this object from.java.io.IOException