StreamingFlowExecution¶
StreamingFlowExecution is an extension of the FlowExecution abstraction for streaming flow executions that process data statefully using Spark Structured Streaming.
Contract (Subset)¶
Checkpoint Location¶
checkpointPath: String
Path for the most recent checkpoint of this streaming flow execution
See:
Used when:
StreamingTableWriteis requested to start a streaming query
Resolved Flow¶
flow: ResolvedFlow
See:
Start Streaming Query¶
startStream(): StreamingQuery
See:
Used when:
StreamingFlowExecutionis requested to executeInternal
Start Streaming Query¶
startStream(): StreamingQuery
See:
Used when:
StreamingFlowExecutionis requested to executeInternal
sqlConf¶
sqlConf: Map[String, String]
Spark configuration properties that must be set upon starting this flow
See:
Used when:
StreamingFlowExecutionis requested to executeInternal
Streaming Trigger¶
trigger: Trigger
Trigger (Spark Structured Streaming)
See:
Used when:
SinkWriteis requested to startStreamStreamingTableWriteis requested to startStream
Implementations¶
executeInternal¶
FlowExecution
executeInternal(): Future[Unit]
executeInternal is part of the FlowExecution abstraction.
executeInternal prints out the following INFO message to the logs:
Starting [identifier] with checkpoint location [checkpointPath]
executeInternal starts the stream (with this SparkSession and sqlConf).
In the end, executeInternal awaits termination of the StreamingQuery.
Final Method
executeInternal is a Scala final method and may not be overridden in subclasses.
Learn more in the Scala Language Specification.