org.apache.sysds.runtime.instructions.spark.functions

## Class ReplicateTensorFunction

- java.lang.Object
- - org.apache.sysds.runtime.instructions.spark.functions.ReplicateTensorFunction

- All Implemented Interfaces:
    Serializable, org.apache.spark.api.java.function.PairFlatMapFunction<scala.Tuple2<TensorIndexes,TensorBlock>,TensorIndexes,TensorBlock>

      public class ReplicateTensorFunction
      extends Object
      implements org.apache.spark.api.java.function.PairFlatMapFunction<scala.Tuple2<TensorIndexes,TensorBlock>,TensorIndexes,TensorBlock>

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReplicateTensorFunction(int byDim, long numReplicas)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Iterator<scala.Tuple2<TensorIndexes,TensorBlock>>` | `call(scala.Tuple2<TensorIndexes,TensorBlock> arg0)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ReplicateTensorFunction

          public ReplicateTensorFunction(int byDim,
                                         long numReplicas)

  - ### Method Detail

    - #### call

          public Iterator<scala.Tuple2<TensorIndexes,TensorBlock>> call(scala.Tuple2<TensorIndexes,TensorBlock> arg0)
                                                                 throws Exception

      Specified by:
        `call` in interface `org.apache.spark.api.java.function.PairFlatMapFunction<scala.Tuple2<TensorIndexes,TensorBlock>,TensorIndexes,TensorBlock>`
      Throws:
        `Exception`

Copyright © 2021 The Apache Software Foundation. All rights reserved.