Package org.apache.sysds.runtime.io
Class WriterMatrixMarket
- java.lang.Object
-
- org.apache.sysds.runtime.io.MatrixWriter
-
- org.apache.sysds.runtime.io.WriterMatrixMarket
-
- Direct Known Subclasses:
WriterMatrixMarketParallel
public class WriterMatrixMarket extends MatrixWriter
-
-
Constructor Summary
Constructors Constructor Description WriterMatrixMarket()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
mergeTextcellToMatrixMarket(String srcFileName, String fileName, long rlen, long clen, long nnz)
void
writeEmptyMatrixToHDFS(String fname, long rlen, long clen, int blen)
Writes a minimal entry to represent an empty matrix on hdfs.void
writeMatrixToHDFS(MatrixBlock src, String fname, long rlen, long clen, int blen, long nnz, boolean diag)
-
Methods inherited from class org.apache.sysds.runtime.io.MatrixWriter
createMatrixBlocksForReuse, getMatrixBlockForReuse, writeMatrixToHDFS
-
-
-
-
Method Detail
-
writeMatrixToHDFS
public final void writeMatrixToHDFS(MatrixBlock src, String fname, long rlen, long clen, int blen, long nnz, boolean diag) throws IOException, DMLRuntimeException
- Specified by:
writeMatrixToHDFS
in classMatrixWriter
- Throws:
IOException
DMLRuntimeException
-
writeEmptyMatrixToHDFS
public final void writeEmptyMatrixToHDFS(String fname, long rlen, long clen, int blen) throws IOException, DMLRuntimeException
Description copied from class:MatrixWriter
Writes a minimal entry to represent an empty matrix on hdfs.- Specified by:
writeEmptyMatrixToHDFS
in classMatrixWriter
- Parameters:
fname
- file namerlen
- number of rowsclen
- number of columnsblen
- number of rows/cols in block- Throws:
IOException
- if IOException occursDMLRuntimeException
-
mergeTextcellToMatrixMarket
public static void mergeTextcellToMatrixMarket(String srcFileName, String fileName, long rlen, long clen, long nnz) throws IOException
- Throws:
IOException
-
-