(Why) do we need to call cache or persist on a RDD
When a resilient distributed dataset (RDD) is created from a text file or collection (or from another RDD), do we need to call … Read more
When a resilient distributed dataset (RDD) is created from a text file or collection (or from another RDD), do we need to call … Read more
One way that has been suggested to deal with double definitions of overloaded methods is to replace overloading with pattern matching: object Bar … Read more
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a … Read more
When should I use reduceLeft, reduceRight, foldLeft, foldRight, scanLeft or scanRight? I want an intuition/overview of their differences – possibly with some simple … Read more
Given a variable with type Graphics, how do I cast it to Graphics2D in Scala? 2 Answers 2
I prefer Python over Scala. But, as Spark is natively written in Scala, I was expecting my code to run faster in the … Read more
In scala.collection, there are two very similar objects JavaConversions and JavaConverters. What is the difference between these two objects? Why do they both … Read more
It seems that Vector was late to the Scala collections party, and all the influential blog posts had already left. In Java ArrayList … Read more
I have learned the basic difference between foldLeft and reduceLeft foldLeft: initial value has to be passed reduceLeft: takes first element of the … Read more