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



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




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


