Class DataPartitionerRemoteSparkMapper
- java.lang.Object
 - 
- org.apache.sysds.runtime.controlprogram.parfor.ParWorker
 - 
- org.apache.sysds.runtime.controlprogram.parfor.DataPartitionerRemoteSparkMapper
 
 
 
- 
- All Implemented Interfaces:
 Serializable,org.apache.spark.api.java.function.PairFlatMapFunction<scala.Tuple2<MatrixIndexes,MatrixBlock>,Long,org.apache.hadoop.io.Writable>
public class DataPartitionerRemoteSparkMapper extends ParWorker implements org.apache.spark.api.java.function.PairFlatMapFunction<scala.Tuple2<MatrixIndexes,MatrixBlock>,Long,org.apache.hadoop.io.Writable>
NOTE: for the moment we only support binary block here TODO extend impl for binarycell and textcell Interface of Writable output in order to support both PairWritableBlock and PairWritableCell.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DataPartitionerRemoteSparkMapper(DataCharacteristics mc, Types.FileFormat fmt, ParForProgramBlock.PDataPartitionFormat dpf, int n) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<scala.Tuple2<Long,org.apache.hadoop.io.Writable>>call(scala.Tuple2<MatrixIndexes,MatrixBlock> arg0)- 
Methods inherited from class org.apache.sysds.runtime.controlprogram.parfor.ParWorker
getExecutedIterations, getExecutedTasks, getExecutionContext, getVariables 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
DataPartitionerRemoteSparkMapper
public DataPartitionerRemoteSparkMapper(DataCharacteristics mc, Types.FileFormat fmt, ParForProgramBlock.PDataPartitionFormat dpf, int n)
 
 - 
 
- 
Method Detail
- 
call
public Iterator<scala.Tuple2<Long,org.apache.hadoop.io.Writable>> call(scala.Tuple2<MatrixIndexes,MatrixBlock> arg0) throws Exception
- Specified by:
 callin interfaceorg.apache.spark.api.java.function.PairFlatMapFunction<scala.Tuple2<MatrixIndexes,MatrixBlock>,Long,org.apache.hadoop.io.Writable>- Throws:
 Exception
 
 - 
 
 -