spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swetha <swethakasire...@gmail.com>
Subject Usage of transform for code reuse between Streaming and Batch job affects the performance ?
Date Mon, 05 Oct 2015 00:59:09 GMT
Hi,

I have the following code for code reuse between the batch and the streaming
job

*  val groupedAndSortedSessions =
sessions.transform(rdd=>JobCommon.getGroupedAndSortedSessions(rdd))*

The same code without code reuse between the batch and the streaming has the
following. 

* val groupedSessions = sessions.groupByKey();

    val sortedSessions  = groupedSessions.mapValues[(List[(Long,
String)])](iter => iter.toList.sortBy(_._1))
*

Does use of transform for code reuse affect groupByKey performance?


Thanks,
Swetha



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Usage-of-transform-for-code-reuse-between-Streaming-and-Batch-job-affects-the-performance-tp24920.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message