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



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




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


