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
Used when:
StreamingTableWriteis requested to start a streaming query
Start Streaming Query¶
startStream(): StreamingQuery
See:
Used when:
StreamingFlowExecutionis requested to executeInternal
Streaming Trigger¶
trigger: Trigger
Trigger (Structured Streaming)
See:
Used when:
FlowPlanneris requested to plan a StreamingFlowStreamingTableWriteis requested to execute the streaming query
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.