Understanding Various Spark Transformations