public class SparkSessionFactory
extends java.lang.Object
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)