Class MatlabRecordWriter
- java.lang.Object
-
- org.datavec.api.records.writer.impl.FileRecordWriter
-
- org.datavec.api.records.writer.impl.misc.MatlabRecordWriter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Configurable
,RecordWriter
public class MatlabRecordWriter extends FileRecordWriter
-
-
Field Summary
-
Fields inherited from class org.datavec.api.records.writer.impl.FileRecordWriter
conf, DEFAULT_CHARSET, encoding, NEW_LINE, out, partitioner
-
Fields inherited from interface org.datavec.api.records.writer.RecordWriter
APPEND
-
-
Constructor Summary
Constructors Constructor Description MatlabRecordWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
supportsBatch()
Returns true if this record writer supports efficient batch writing usingRecordWriter.writeBatch(List)
PartitionMetaData
write(List<Writable> record)
Write a recordPartitionMetaData
writeBatch(List<List<Writable>> batch)
Write a batch of records-
Methods inherited from class org.datavec.api.records.writer.impl.FileRecordWriter
close, getConf, initialize, initialize, setConf
-
-
-
-
Method Detail
-
supportsBatch
public boolean supportsBatch()
Description copied from interface:RecordWriter
Returns true if this record writer supports efficient batch writing usingRecordWriter.writeBatch(List)
- Returns:
-
write
public PartitionMetaData write(List<Writable> record) throws IOException
Description copied from interface:RecordWriter
Write a record- Parameters:
record
- the record to write- Throws:
IOException
-
writeBatch
public PartitionMetaData writeBatch(List<List<Writable>> batch) throws IOException
Description copied from interface:RecordWriter
Write a batch of records- Parameters:
batch
- the batch to write- Throws:
IOException
-
-