 
 
 (defn rdd-name
-  ([^JavaRDD rdd name]
+  ([rdd name]
    (.setName rdd name))
-  ([^JavaRDD rdd]
+  ([rdd]
    (.name rdd)))
 
 


(defn foreach-partition
  "Applies the function `f` to all elements of `rdd`."
  [^JavaRDD rdd f]
  (.foreachPartition rdd (void-function (comp f iterator-seq))))




(defn partitions
  "Returns a vector of partitions for a given JavaRDD"
  [javaRdd]
  (into [] (.partitions (.rdd javaRdd))))


