Class SparkRunnerStreamingContextFactory
java.lang.Object
org.apache.beam.runners.spark.translation.streaming.SparkRunnerStreamingContextFactory
- All Implemented Interfaces:
Serializable
,org.apache.spark.api.java.function.Function0<org.apache.spark.streaming.api.java.JavaStreamingContext>
public class SparkRunnerStreamingContextFactory
extends Object
implements org.apache.spark.api.java.function.Function0<org.apache.spark.streaming.api.java.JavaStreamingContext>
A
JavaStreamingContext
factory for resilience.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSparkRunnerStreamingContextFactory
(Pipeline pipeline, SparkPipelineOptions options, Checkpoint.CheckpointDir checkpointDir) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.spark.streaming.api.java.JavaStreamingContext
call()
-
Constructor Details
-
SparkRunnerStreamingContextFactory
public SparkRunnerStreamingContextFactory(Pipeline pipeline, SparkPipelineOptions options, Checkpoint.CheckpointDir checkpointDir)
-
-
Method Details
-
call
- Specified by:
call
in interfaceorg.apache.spark.api.java.function.Function0<org.apache.spark.streaming.api.java.JavaStreamingContext>
- Throws:
Exception
-