public class WriterMatrixMarket extends MatrixWriter
| Constructor and Description |
|---|
WriterMatrixMarket() |
| Modifier and Type | Method and 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) |
createMatrixBlocksForReuse, getMatrixBlockForReuse, writeMatrixToHDFSpublic final void writeMatrixToHDFS(MatrixBlock src, String fname, long rlen, long clen, int blen, long nnz, boolean diag) throws IOException, DMLRuntimeException
writeMatrixToHDFS in class MatrixWriterIOExceptionDMLRuntimeExceptionpublic final void writeEmptyMatrixToHDFS(String fname, long rlen, long clen, int blen) throws IOException, DMLRuntimeException
MatrixWriterwriteEmptyMatrixToHDFS in class MatrixWriterfname - file namerlen - number of rowsclen - number of columnsblen - number of rows/cols in blockIOException - if IOException occursDMLRuntimeExceptionpublic static void mergeTextcellToMatrixMarket(String srcFileName, String fileName, long rlen, long clen, long nnz) throws IOException
IOExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.