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


Streaming sink for console data source format




results matching ""

    No results matching ""