Class MapToPairs

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.spark.api.java.function.PairFlatMapFunction<java.lang.Integer,​java.lang.Integer,​java.lang.Integer>

    public class MapToPairs
    extends java.lang.Object
    implements org.apache.spark.api.java.function.PairFlatMapFunction<java.lang.Integer,​java.lang.Integer,​java.lang.Integer>
    Map the individual numbers to pairs of integers - to do half matrix comparisons.
    Author:
    Anthony Bradley
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MapToPairs​(int totalNum)
      Constructor takes the to
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<scala.Tuple2<java.lang.Integer,​java.lang.Integer>> call​(java.lang.Integer t)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapToPairs

        public MapToPairs​(int totalNum)
        Constructor takes the to
        Parameters:
        totalNum - the size of the matrix to calculate
    • Method Detail

      • call

        public java.util.Iterator<scala.Tuple2<java.lang.Integer,​java.lang.Integer>> call​(java.lang.Integer t)
                                                                                         throws java.lang.Exception
        Specified by:
        call in interface org.apache.spark.api.java.function.PairFlatMapFunction<java.lang.Integer,​java.lang.Integer,​java.lang.Integer>
        Throws:
        java.lang.Exception