Sometimes while processing data we will come across some situations where we need to find the difference of price a…
Functional programming is like writing a series of algebraic equations, and because you don’t use null values in algebra, you…
What is Singleton object? Scala doesn’t have a concept called static. Instead of static, scala has something called Singleton object.…
What is Scala Monad? Monad is neither a data type nor class/trait. Monad is a concept. There are lot ways…
mapValues – This function works with PairRDDs only. So this function always requires an RDD of type RDD[(a,b)]. mapValues functions…