-
public final class SparkHelperKt
-
-
Method Summary
Modifier and Type Method Description final UnitwithSpark(Map<String, Object> props, String master, String appName, SparkLogLevel logLevel, Function1<KSparkSession, Unit> func)Wrapper for spark creation which allows to set different spark params final UnitwithSpark(SparkSession.Builder builder, SparkLogLevel logLevel, Function1<KSparkSession, Unit> func)Pavel hello! -
-
Method Detail
-
withSpark
@JvmOverloads() final Unit withSpark(Map<String, Object> props, String master, String appName, SparkLogLevel logLevel, Function1<KSparkSession, Unit> func)
Wrapper for spark creation which allows to set different spark params
- Parameters:
props- spark options, value types are runtime-checked for type-correctnessmaster- SparkSession.Builder.appName- SparkSession.Builder.func- function which will be executed in context of KSparkSession (it means thatthisinside block will point to KSparkSession)
-
withSpark
@JvmOverloads() final Unit withSpark(SparkSession.Builder builder, SparkLogLevel logLevel, Function1<KSparkSession, Unit> func)
Pavel hello! Hello, World! How are you??
-
-
-
-