Class DataPartitioner
java.lang.Object
org.apache.sysds.runtime.controlprogram.parfor.DataPartitioner
- Direct Known Subclasses:
DataPartitionerLocal,DataPartitionerRemoteSpark
This is the base class for all data partitioner.
-
Method Summary
Modifier and TypeMethodDescriptioncreatePartitionedMatrixObject(MatrixObject in, String fnameNew) createPartitionedMatrixObject(MatrixObject in, String fnameNew, boolean force) createPartitionedMatrixObject(MatrixObject in, MatrixObject out, boolean force) Creates a partitioned matrix object based on the given input matrix object, according to the specified split format.static MatrixBlockcreateReuseMatrixBlock(ParForProgramBlock.PDataPartitionFormat dpf, int rows, int cols) void
-
Method Details
-
createPartitionedMatrixObject
-
createPartitionedMatrixObject
-
createPartitionedMatrixObject
Creates a partitioned matrix object based on the given input matrix object, according to the specified split format. The input matrix can be in-memory or still on HDFS and the partitioned output matrix is written to HDFS. The created matrix object can be used transparently for obtaining the full matrix or reading 1 or multiple partitions based on given index ranges.- Parameters:
in- input matrix objectout- output matrix objectforce- if false, try to optimize- Returns:
- partitioned matrix object
-
disableBinaryCell
public void disableBinaryCell() -
createReuseMatrixBlock
public static MatrixBlock createReuseMatrixBlock(ParForProgramBlock.PDataPartitionFormat dpf, int rows, int cols)
-