Class SparkSessionFactory
java.lang.Object
org.apache.beam.runners.spark.structuredstreaming.translation.SparkSessionFactory
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classKryoRegistratorfor Spark to serialize broadcast variables used for side-inputs. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.spark.sql.SparkSessionGets activeSparkSessionor creates one usingSparkStructuredStreamingPipelineOptions.static org.apache.spark.sql.SparkSession.BuildersessionBuilder(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 activeSparkSessionor creates one usingSparkStructuredStreamingPipelineOptions. - 
sessionBuilder
Creates Spark session builder with some optimizations for local mode, e.g. in tests. 
 -