Class SparkBroadcastVariables


  • public final class SparkBroadcastVariables
    extends java.lang.Object
    Broadcast variables of Spark.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.io.Serializable,​java.lang.Object> getAll()  
      static long register​(java.lang.Object variable)  
      • Methods inherited from class java.lang.Object

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

      • register

        public static long register​(java.lang.Object variable)
        Parameters:
        variable - data.
        Returns:
        the id of the variable.
      • getAll

        public static java.util.Map<java.io.Serializable,​java.lang.Object> getAll()
        Returns:
        all the map from ids to variables.