Package org.apache.sysds.runtime.io
Class WriterBinaryBlockParallel
java.lang.Object
org.apache.sysds.runtime.io.MatrixWriter
org.apache.sysds.runtime.io.WriterBinaryBlock
org.apache.sysds.runtime.io.WriterBinaryBlockParallel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intnumPartsFiles(org.apache.hadoop.fs.FileSystem fs, long rlen, long clen, long blen, long nZeros) longwriteMatrixFromStream(String fname, OOCStream<IndexedMatrixValue> stream, long rlen, long clen, int blen) Consumes an out-of-core stream of matrix blocks and writes them to the target output path.Methods inherited from class org.apache.sysds.runtime.io.WriterBinaryBlock
writeEmptyMatrixToHDFS, writeMatrixToHDFSMethods inherited from class org.apache.sysds.runtime.io.MatrixWriter
createMatrixBlocksForReuse, getMatrixBlockForReuse, setForcedParallel, writeMatrixToHDFS
-
Constructor Details
-
WriterBinaryBlockParallel
public WriterBinaryBlockParallel(int replication)
-
-
Method Details
-
writeMatrixFromStream
public long writeMatrixFromStream(String fname, OOCStream<IndexedMatrixValue> stream, long rlen, long clen, int blen) throws IOException Description copied from class:MatrixWriterConsumes an out-of-core stream of matrix blocks and writes them to the target output path. Implementations may choose single-file or multipart output depending on format and parallelism.- Overrides:
writeMatrixFromStreamin classWriterBinaryBlock- Parameters:
fname- The target output filenamestream- The OOC stream of matrix blocks to consumerlen- The total number of rows in the matrixclen- The total number of columns in the matrixblen- The block size- Throws:
IOException- if an I/O error occurs
-
numPartsFiles
public static int numPartsFiles(org.apache.hadoop.fs.FileSystem fs, long rlen, long clen, long blen, long nZeros)
-