Class ResultMergeRemoteSparkWCompare
java.lang.Object
org.apache.sysds.runtime.controlprogram.parfor.ResultMerge<MatrixObject>
org.apache.sysds.runtime.controlprogram.parfor.ResultMergeMatrix
org.apache.sysds.runtime.controlprogram.parfor.ResultMergeRemoteSparkWCompare
- All Implemented Interfaces:
Serializable,org.apache.spark.api.java.function.PairFunction<scala.Tuple2<MatrixIndexes,scala.Tuple2<Iterable<MatrixBlock>, MatrixBlock>>, MatrixIndexes, MatrixBlock>
public class ResultMergeRemoteSparkWCompare
extends ResultMergeMatrix
implements org.apache.spark.api.java.function.PairFunction<scala.Tuple2<MatrixIndexes,scala.Tuple2<Iterable<MatrixBlock>,MatrixBlock>>,MatrixIndexes,MatrixBlock>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Tuple2<MatrixIndexes,MatrixBlock> call(scala.Tuple2<MatrixIndexes, scala.Tuple2<Iterable<MatrixBlock>, MatrixBlock>> arg) executeParallelMerge(int par) Merge all given input matrices in parallel into the given output matrix.Merge all given input matrices sequentially into the given output matrix.
-
Constructor Details
-
ResultMergeRemoteSparkWCompare
public ResultMergeRemoteSparkWCompare(boolean accum)
-
-
Method Details
-
call
public scala.Tuple2<MatrixIndexes,MatrixBlock> call(scala.Tuple2<MatrixIndexes, scala.Tuple2<Iterable<MatrixBlock>, throws ExceptionMatrixBlock>> arg) - Specified by:
callin interfaceorg.apache.spark.api.java.function.PairFunction<scala.Tuple2<MatrixIndexes,scala.Tuple2<Iterable<MatrixBlock>, MatrixBlock>>, MatrixIndexes, MatrixBlock> - Throws:
Exception
-
executeSerialMerge
Description copied from class:ResultMergeMerge all given input matrices sequentially into the given output matrix. The required space in-memory is the size of the output matrix plus the size of one input matrix at a time.- Specified by:
executeSerialMergein classResultMerge<MatrixObject>- Returns:
- output (merged) matrix
-
executeParallelMerge
Description copied from class:ResultMergeMerge all given input matrices in parallel into the given output matrix. The required space in-memory is the size of the output matrix plus the size of all input matrices.- Specified by:
executeParallelMergein classResultMerge<MatrixObject>- Parameters:
par- degree of parallelism- Returns:
- output (merged) matrix
-