Class SparkSessionFactory
java.lang.Object
org.apache.beam.runners.spark.structuredstreaming.translation.SparkSessionFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
KryoRegistrator
for Spark to serialize broadcast variables used for side-inputs. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.spark.sql.SparkSession
Gets activeSparkSession
or creates one usingSparkStructuredStreamingPipelineOptions
.static org.apache.spark.sql.SparkSession.Builder
sessionBuilder
(String master) Creates Spark session builder with some optimizations for local mode, e.g.
-
Constructor Details
-
SparkSessionFactory
public SparkSessionFactory()
-
-
Method Details
-
getOrCreateSession
public static org.apache.spark.sql.SparkSession getOrCreateSession(SparkStructuredStreamingPipelineOptions options) Gets activeSparkSession
or creates one usingSparkStructuredStreamingPipelineOptions
. -
sessionBuilder
Creates Spark session builder with some optimizations for local mode, e.g. in tests.
-