withSpark

fun <T> withSpark(sc: <Error class: unknown class>, func: KSparkSession.() -> T): T

Helper function to enter Spark scope from sc like

withSpark(sc) { // this: KSparkSession

}

fun <T> withSpark(rddForConf: <Error class: unknown class><out <Error class: unknown class>, out <Error class: unknown class>>, func: KSparkSession.() -> T): T

Helper function to enter Spark scope from a provided like when using the foreachRDD function.

withSpark(rdd) { // this: KSparkSession

}

fun <T> withSpark(sscForConf: <Error class: unknown class>, func: KSparkSession.() -> T): T

Helper function to enter Spark scope from sscForConf like

withSpark(ssc) { // this: KSparkSession

}