Class CSVInputFormat
- java.lang.Object
-
- org.datavec.api.formats.input.BaseInputFormat
-
- org.datavec.api.formats.input.impl.CSVInputFormat
-
- All Implemented Interfaces:
Serializable,InputFormat,Writable
public class CSVInputFormat extends BaseInputFormat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CSVInputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordReadercreateReader(InputSplit split)Creates a reader from an input splitRecordReadercreateReader(InputSplit split, Configuration conf)Creates a reader from an input splitvoidreadFields(DataInput in)Deserialize the fields of this object fromin.voidwrite(DataOutput out)Serialize the fields of this object toout.
-
-
-
Method Detail
-
createReader
public RecordReader createReader(InputSplit split, Configuration conf) throws IOException, InterruptedException
Description copied from interface:InputFormatCreates a reader from an input split- Parameters:
split- the split to read- Returns:
- the reader from the given input split
- Throws:
IOExceptionInterruptedException
-
createReader
public RecordReader createReader(InputSplit split) throws IOException, InterruptedException
Description copied from interface:InputFormatCreates a reader from an input split- Specified by:
createReaderin interfaceInputFormat- Overrides:
createReaderin classBaseInputFormat- Parameters:
split- the split to read- Returns:
- the reader from the given input split
- Throws:
IOExceptionInterruptedException
-
write
public void write(DataOutput out) throws IOException
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Overrides:
writein classBaseInputFormat- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Overrides:
readFieldsin classBaseInputFormat- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException
-
-