Skip to content
Snippets Groups Projects
Commit 7de180fd authored by Holden Karau's avatar Holden Karau
Browse files

Remove explicit boxing

parent 20b33bc4
No related branches found
No related tags found
No related merge requests found
......@@ -169,9 +169,9 @@ class JavaDoubleRDD(val srdd: RDD[scala.Double]) extends JavaRDDLike[Double, Jav
* If the RDD contains infinity, NaN throws an exception
* If the elements in RDD do not vary (max == min) always returns a single bucket.
*/
def histogram(bucketCount: Int): Pair[Array[Double], Array[Long]] = {
def histogram(bucketCount: Int): Pair[Array[scala.Double], Array[Long]] = {
val result = srdd.histogram(bucketCount)
(result._1.map(scala.Double.box(_)), result._2)
(result._1, result._2)
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment