Package org.apache.sysds.runtime.io
Class WriterTextCSV
- java.lang.Object
- 
- org.apache.sysds.runtime.io.MatrixWriter
- 
- org.apache.sysds.runtime.io.WriterTextCSV
 
 
- 
- Direct Known Subclasses:
- WriterTextCSVParallel
 
 public class WriterTextCSV extends MatrixWriter 
- 
- 
Field SummaryFields Modifier and Type Field Description static intBLOCKSIZE_J
 - 
Constructor SummaryConstructors Constructor Description WriterTextCSV(FileFormatPropertiesCSV props)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHeaderToCSV(String srcFileName, String destFileName, long rlen, long clen)voidwriteEmptyMatrixToHDFS(String fname, long rlen, long clen, int blen)Writes a minimal entry to represent an empty matrix on hdfs.voidwriteMatrixToHDFS(MatrixBlock src, String fname, long rlen, long clen, int blen, long nnz, boolean diag)- 
Methods inherited from class org.apache.sysds.runtime.io.MatrixWritercreateMatrixBlocksForReuse, getMatrixBlockForReuse, writeMatrixToHDFS
 
- 
 
- 
- 
- 
Field Detail- 
BLOCKSIZE_Jpublic static final int BLOCKSIZE_J - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
WriterTextCSVpublic WriterTextCSV(FileFormatPropertiesCSV props) 
 
- 
 - 
Method Detail- 
writeMatrixToHDFSpublic final void writeMatrixToHDFS(MatrixBlock src, String fname, long rlen, long clen, int blen, long nnz, boolean diag) throws IOException, DMLRuntimeException - Specified by:
- writeMatrixToHDFSin class- MatrixWriter
- Throws:
- IOException
- DMLRuntimeException
 
 - 
writeEmptyMatrixToHDFSpublic final void writeEmptyMatrixToHDFS(String fname, long rlen, long clen, int blen) throws IOException, DMLRuntimeException Description copied from class:MatrixWriterWrites a minimal entry to represent an empty matrix on hdfs.- Specified by:
- writeEmptyMatrixToHDFSin class- MatrixWriter
- Parameters:
- fname- file name
- rlen- number of rows
- clen- number of columns
- blen- number of rows/cols in block
- Throws:
- IOException- if IOException occurs
- DMLRuntimeException
 
 - 
addHeaderToCSVpublic final void addHeaderToCSV(String srcFileName, String destFileName, long rlen, long clen) throws IOException - Throws:
- IOException
 
 
- 
 
-