Class LineInputFormat
- java.lang.Object
-
- org.datavec.api.formats.input.BaseInputFormat
-
- org.datavec.api.formats.input.impl.LineInputFormat
-
- All Implemented Interfaces:
Serializable
,InputFormat
,Writable
public class LineInputFormat extends BaseInputFormat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LineInputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordReader
createReader(InputSplit split)
Creates a reader from an input splitRecordReader
createReader(InputSplit split, Configuration conf)
Creates a reader from an input splitvoid
readFields(DataInput in)
Deserialize the fields of this object fromin
.void
write(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:InputFormat
Creates a reader from an input split- Parameters:
split
- the split to read- Returns:
- the reader from the given input split
- Throws:
IOException
InterruptedException
-
createReader
public RecordReader createReader(InputSplit split) throws IOException, InterruptedException
Description copied from interface:InputFormat
Creates a reader from an input split- Specified by:
createReader
in interfaceInputFormat
- Overrides:
createReader
in classBaseInputFormat
- Parameters:
split
- the split to read- Returns:
- the reader from the given input split
- Throws:
IOException
InterruptedException
-
write
public void write(DataOutput out) throws IOException
Description copied from interface:Writable
Serialize the fields of this object toout
.- Specified by:
write
in interfaceWritable
- Overrides:
write
in classBaseInputFormat
- Parameters:
out
-DataOuput
to serialize this object into.- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
Description copied from interface:Writable
Deserialize the fields of this object fromin
.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFields
in interfaceWritable
- Overrides:
readFields
in classBaseInputFormat
- Parameters:
in
-DataInput
to deseriablize this object from.- Throws:
IOException
-
-