When a resilient distributed dataset (RDD) is created from a text file or collection (or from another RDD), do we need to call “cache” or “persist” explicitly to store...
One way that has been suggested to deal with double definitions of overloaded methods is to replace overloading with pattern matching: object Bar { def foo(xs: Any*) = xs...
True… it has been discussed quite a lot. However, there is a lot of ambiguity and some of the answers provided … including duplicating JAR references in the jars/executor/driver...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a book, tool, software library, tutorial or...
When should I use reduceLeft, reduceRight, foldLeft, foldRight, scanLeft or scanRight? I want an intuition/overview of their differences – possibly with some simple examples. 3 Answers 3
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 Scala than the Python version for...
In scala.collection, there are two very similar objects JavaConversions and JavaConverters. What is the difference between these two objects? Why do they both exist? When do I want to...
I can see in the API docs for Predef that they’re subclasses of a generic function type (From) => To, but that’s all it says. Um, what? Maybe there’s...
It seems that Vector was late to the Scala collections party, and all the influential blog posts had already left. In Java ArrayList is the default collection – I...