public class SparkSessionFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SparkSessionFactory.SparkKryoRegistrator
KryoRegistrator for Spark to serialize broadcast variables used for side-inputs. |
Constructor and Description |
---|
SparkSessionFactory() |
Modifier and Type | Method and Description |
---|---|
static org.apache.spark.sql.SparkSession |
getOrCreateSession(SparkStructuredStreamingPipelineOptions options)
Gets active
SparkSession or creates one using SparkStructuredStreamingPipelineOptions . |
static org.apache.spark.sql.SparkSession.Builder |
sessionBuilder(java.lang.String master)
Creates Spark session builder with some optimizations for local mode, e.g.
|
public static org.apache.spark.sql.SparkSession getOrCreateSession(SparkStructuredStreamingPipelineOptions options)
SparkSession
or creates one using SparkStructuredStreamingPipelineOptions
.public static org.apache.spark.sql.SparkSession.Builder sessionBuilder(java.lang.String master)