stream_write_table | R Documentation |
Writes a Spark dataframe stream into a table.
stream_write_table(
x,
path,
format = NULL,
mode = c("append", "complete", "update"),
checkpoint = file.path("checkpoints", random_string("")),
options = list(),
partition_by = NULL,
...
)
x |
A Spark DataFrame or dplyr operation |
path |
The path to the file. Needs to be accessible from the cluster. Supports the ‘"hdfs://"’, ‘"s3a://"’ and ‘"file://"’ protocols. |
format |
Specifies format of data written to table E.g.
|
mode |
Specifies how data is written to a streaming sink. Valid values are
|
checkpoint |
The location where the system will write all the checkpoint information to guarantee end-to-end fault-tolerance. |
options |
A list of strings with additional options. |
partition_by |
Partitions the output by the given list of columns. |
... |
Optional arguments; currently unused. |
Other Spark stream serialization:
stream_write_csv()
,
stream_write_memory()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.