Class RandomKeyAssigner

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

    public class RandomKeyAssigner
    extends java.lang.Object
    implements org.apache.spark.api.java.function.Function<java.lang.String,​scala.Tuple2<java.lang.Integer,​java.lang.String>>
    Maps a key to a randomly generated key. Created by ap3 on 05/05/2016.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomKeyAssigner​(int nrFramctions)  
    • Method Summary

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

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

      • RandomKeyAssigner

        public RandomKeyAssigner​(int nrFramctions)
    • Method Detail

      • call

        public scala.Tuple2<java.lang.Integer,​java.lang.String> call​(java.lang.String s)
                                                                    throws java.lang.Exception
        Specified by:
        call in interface org.apache.spark.api.java.function.Function<java.lang.String,​scala.Tuple2<java.lang.Integer,​java.lang.String>>
        Throws:
        java.lang.Exception