-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ContinuousExecution -- StreamExecution of StreamWriteSupport Sinks wi…
…th ContinuousTrigger
- Loading branch information
1 parent
836196d
commit fce5037
Showing
4 changed files
with
69 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
== [[ConsoleSinkProvider]] ConsoleSinkProvider | ||
|
||
`ConsoleSinkProvider` is a link:spark-sql-streaming-StreamSinkProvider.adoc[StreamSinkProvider] for link:spark-sql-streaming-ConsoleSink.adoc[ConsoleSink]. | ||
`ConsoleSinkProvider` is a `DataSourceV2` with <<spark-sql-streaming-StreamWriteSupport.adoc#, StreamWriteSupport>> for <<spark-sql-streaming-ConsoleSink.adoc#< ConsoleSink>>. | ||
|
||
`ConsoleSinkProvider` is a link:spark-sql-DataSourceRegister.adoc[DataSourceRegister] that registers the `ConsoleSink` streaming sink as `console` format. | ||
|
||
[source, scala] | ||
---- | ||
import org.apache.spark.sql.streaming.Trigger | ||
val q = spark | ||
.readStream | ||
.format("rate") | ||
.load | ||
.writeStream | ||
.format("console") // <-- requests ConsoleSinkProvider for a sink | ||
.trigger(Trigger.Once) | ||
.start | ||
scala> println(q.lastProgress.sink) | ||
{ | ||
"description" : "org.apache.spark.sql.execution.streaming.ConsoleSinkProvider@edde9bb" | ||
} | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters