Package org.apache.sysds.runtime.io
Class WriterHDF5
- java.lang.Object
-
- org.apache.sysds.runtime.io.MatrixWriter
-
- org.apache.sysds.runtime.io.WriterHDF5
-
- Direct Known Subclasses:
WriterHDF5Parallel
public class WriterHDF5 extends MatrixWriter
-
-
Constructor Summary
Constructors Constructor Description WriterHDF5(FileFormatPropertiesHDF5 _props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.MatrixWriter
createMatrixBlocksForReuse, getMatrixBlockForReuse, writeMatrixToHDFS
-
-
-
-
Constructor Detail
-
WriterHDF5
public WriterHDF5(FileFormatPropertiesHDF5 _props)
-
-
Method Detail
-
writeMatrixToHDFS
public void writeMatrixToHDFS(MatrixBlock src, String fname, long rlen, long clen, int blen, long nnz, boolean diag) throws IOException, DMLRuntimeException
- Specified by:
writeMatrixToHDFSin classMatrixWriter- Throws:
IOExceptionDMLRuntimeException
-
writeEmptyMatrixToHDFS
public 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 classMatrixWriter- Parameters:
fname- file namerlen- number of rowsclen- number of columnsblen- number of rows/cols in block- Throws:
IOException- if IOException occursDMLRuntimeException
-
-