Github user sryza commented on a diff in the pull request: https://github.com/apache/spark/pull/789#discussion_r18182436 --- Diff: core/src/main/scala/org/apache/spark/SparkConf.scala --- @@ -140,6 +141,20 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging { this } + /** + * Use Kryo serialization and register the given set of classes with Kryo. + * If called multiple times, this will append the classes from all calls together. + */ + def registerKryoClasses(classes: Array[Class[_ <: Any]]): SparkConf = { --- End diff -- @mateiz 's earlier request was for <code>registerKryoClasses</code>, but <code>setKryoClasses</code> sounds fine too if you both agree. It looks like using <code>Class[_]</code> does work, but using <code>Seq</code> makes it difficult to use the API from Java.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org