Class CopyTensorBlockPairFunction
java.lang.Object
org.apache.sysds.runtime.instructions.spark.functions.CopyTensorBlockPairFunction
- All Implemented Interfaces:
Serializable,org.apache.spark.api.java.function.PairFlatMapFunction<Iterator<scala.Tuple2<TensorIndexes,BasicTensorBlock>>, TensorIndexes, BasicTensorBlock>
public class CopyTensorBlockPairFunction
extends Object
implements org.apache.spark.api.java.function.PairFlatMapFunction<Iterator<scala.Tuple2<TensorIndexes,BasicTensorBlock>>,TensorIndexes,BasicTensorBlock>
General purpose copy function for binary block rdds. This function can be used in
mapToPair (copy tensor indexes and blocks). It supports both deep and shallow copies
of key/value pairs.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLazyIterableIterator<scala.Tuple2<TensorIndexes,BasicTensorBlock>> call(Iterator<scala.Tuple2<TensorIndexes, BasicTensorBlock>> arg0)
-
Constructor Details
-
CopyTensorBlockPairFunction
public CopyTensorBlockPairFunction() -
CopyTensorBlockPairFunction
public CopyTensorBlockPairFunction(boolean deepCopy)
-
-
Method Details
-
call
public LazyIterableIterator<scala.Tuple2<TensorIndexes,BasicTensorBlock>> call(Iterator<scala.Tuple2<TensorIndexes, BasicTensorBlock>> arg0) throws Exception- Specified by:
callin interfaceorg.apache.spark.api.java.function.PairFlatMapFunction<Iterator<scala.Tuple2<TensorIndexes,BasicTensorBlock>>, TensorIndexes, BasicTensorBlock> - Throws:
Exception
-