public class WriterTextCSV extends MatrixWriter
Modifier and Type | Field and Description |
---|---|
static int |
BLOCKSIZE_J |
Constructor and Description |
---|
WriterTextCSV(FileFormatPropertiesCSV props) |
Modifier and Type | Method and Description |
---|---|
void |
addHeaderToCSV(String srcFileName,
String destFileName,
long rlen,
long clen) |
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, writeMatrixToHDFS
public static final int BLOCKSIZE_J
public WriterTextCSV(FileFormatPropertiesCSV props)
public final void writeMatrixToHDFS(MatrixBlock src, String fname, long rlen, long clen, int blen, long nnz, boolean diag) throws IOException, DMLRuntimeException
writeMatrixToHDFS
in class MatrixWriter
IOException
DMLRuntimeException
public final void writeEmptyMatrixToHDFS(String fname, long rlen, long clen, int blen) throws IOException, DMLRuntimeException
MatrixWriter
writeEmptyMatrixToHDFS
in class MatrixWriter
fname
- file namerlen
- number of rowsclen
- number of columnsblen
- number of rows/cols in blockIOException
- if IOException occursDMLRuntimeException
public final void addHeaderToCSV(String srcFileName, String destFileName, long rlen, long clen) throws IOException
IOException
Copyright © 2020 The Apache Software Foundation. All rights reserved.