The Pair ones return a JavaPairRDD, which has additional operations on 
key-value pairs. Take a look at 
http://spark.apache.org/docs/latest/programming-guide.html#working-with-key-value-pairs
 for details.

Matei

On Jul 24, 2014, at 3:41 PM, abhiguruvayya <sharath.abhis...@gmail.com> wrote:

> Can any one help me understand the key difference between mapToPair vs
> flatMapToPair vs flatMap functions and also when to apply these functions in
> particular.
> 
> 
> 
> --
> View this message in context: 
> http://apache-spark-user-list.1001560.n3.nabble.com/mapToPair-vs-flatMapToPair-vs-flatMap-function-usage-tp10617.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.

Reply via email to