Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.75 KB

spark-sql-streaming-StreamWriteSupport.adoc

File metadata and controls

40 lines (30 loc) · 1.75 KB

StreamWriteSupport Contract — Writable Streaming Data Sources

StreamWriteSupport is the abstraction of DataSourceV2 sinks that create StreamWriters for streaming write (when used in streaming queries in MicroBatchExecution and ContinuousExecution).

StreamWriter createStreamWriter(
  String queryId,
  StructType schema,
  OutputMode mode,
  DataSourceOptions options)

createStreamWriter creates a StreamWriter for streaming write and is used when the stream execution thread for a streaming query is started and requests the stream execution engines to start, i.e.

Table 1. StreamWriteSupports
StreamWriteSupport Description

ConsoleSinkProvider

Streaming sink for console data source format

ForeachWriterProvider

KafkaSourceProvider

MemorySinkV2