Skip to content

Scd1MergeStreamingWrite

Scd1MergeStreamingWrite is a StreamingFlowExecution with AutoCdcMergeWriteBase for AutoCdcMergeFlows (of Type1 with Table output).

Creating Instance

Scd1MergeStreamingWrite takes the following to be created:

Scd1MergeStreamingWrite is created when:

Start Streaming Query

StreamingFlowExecution
startStream(): StreamingQuery

startStream is part of the StreamingFlowExecution abstraction.

startStream gets the source's Change Data Feed. startStream requests this DataflowGraph to resolve this AutoCdcMergeFlow to take the DataFrame.

startStream createAuxiliaryTableIfNotExists.

startStream creates a Scd1ForeachBatchHandler with a Scd1BatchProcessor.

In the end, startStream starts a streaming query with foreachBatch (Spark Structured Streaming) streaming operator. foreachBatch operator executes the Scd1ForeachBatchHandler for every streaming batch.