Created
October 30, 2016 21:28
-
-
Save thomasnield/974458eb2068348fde4c50f6b84758a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.spark.SparkConf | |
import org.apache.spark.api.java.JavaSparkContext | |
import kotlin.reflect.KClass | |
//collecting useful Kotlin extension functions for Spark | |
fun SparkConf.registerKryoClasses(vararg args: KClass<*>) = registerKryoClasses(args.map { it.java }.toTypedArray()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment