createSink(
sqlContext: SQLContext,
parameters: Map[String, String],
partitionColumns: Seq[String],
outputMode: OutputMode): Sink
StreamSinkProvider Contract
StreamSinkProvider
is the abstraction of providers that can create a streaming sink for a file format (e.g. parquet
) or system (e.g. kafka
).
Important
|
StreamWriteSupport is a newer version of StreamSinkProvider (aka DataSource API V2 ) and new data sources should use the contract instead.
|
Method | Description |
---|---|
|
Creates a streaming sink Used exclusively when |
Note
|
KafkaSourceProvider is the only known StreamSinkProvider in Spark Structured Streaming.
|