Class DataPartitionerSparkAggregator
java.lang.Object
org.apache.sysds.runtime.controlprogram.paramserv.dp.DataPartitionerSparkAggregator
- All Implemented Interfaces:
Serializable,org.apache.spark.api.java.function.PairFunction<scala.Tuple2<Integer,LinkedList<scala.Tuple2<Long, scala.Tuple2<MatrixBlock, MatrixBlock>>>>, Integer, scala.Tuple2<MatrixBlock, MatrixBlock>>
public class DataPartitionerSparkAggregator
extends Object
implements org.apache.spark.api.java.function.PairFunction<scala.Tuple2<Integer,LinkedList<scala.Tuple2<Long,scala.Tuple2<MatrixBlock,MatrixBlock>>>>,Integer,scala.Tuple2<MatrixBlock,MatrixBlock>>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscala.Tuple2<Integer,scala.Tuple2<MatrixBlock, MatrixBlock>> call(scala.Tuple2<Integer, LinkedList<scala.Tuple2<Long, scala.Tuple2<MatrixBlock, MatrixBlock>>>> input) Row-wise combine the matrix
-
Constructor Details
-
DataPartitionerSparkAggregator
public DataPartitionerSparkAggregator() -
DataPartitionerSparkAggregator
public DataPartitionerSparkAggregator(long fcol, long lcol)
-
-
Method Details
-
call
public scala.Tuple2<Integer,scala.Tuple2<MatrixBlock, callMatrixBlock>> (scala.Tuple2<Integer, LinkedList<scala.Tuple2<Long, throws Exceptionscala.Tuple2<MatrixBlock, MatrixBlock>>>> input) Row-wise combine the matrix- Specified by:
callin interfaceorg.apache.spark.api.java.function.PairFunction<scala.Tuple2<Integer,LinkedList<scala.Tuple2<Long, scala.Tuple2<MatrixBlock, MatrixBlock>>>>, Integer, scala.Tuple2<MatrixBlock, MatrixBlock>> - Parameters:
input- workerID => ordered list [(rowBlockID, (features, labels))]- Returns:
- workerID => [(features, labels)]
- Throws:
Exception- Some exception
-